From d70072645b30379da4cc9f0d2d4d7dbfd0d4c7be Mon Sep 17 00:00:00 2001 From: Leandro Arndt Date: Tue, 23 Dec 2014 22:33:16 -0200 Subject: [PATCH] Classe DB --- restrito/inc/database.php | 2 +- restrito/inc/topo.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/restrito/inc/database.php b/restrito/inc/database.php index c7ebebc..446b5ce 100644 --- a/restrito/inc/database.php +++ b/restrito/inc/database.php @@ -34,7 +34,7 @@ function db_open_trans() $mysqli->autocommit(false); - return true; + return $mysqli; } diff --git a/restrito/inc/topo.php b/restrito/inc/topo.php index ddeb7a0..14b4164 100644 --- a/restrito/inc/topo.php +++ b/restrito/inc/topo.php @@ -9,6 +9,7 @@ ***********************************************************************************/ require_once("config.php"); +include_once(DIR_CLASSES_LEIACESSO."/db.class.php"); ?> @@ -93,9 +94,9 @@ require_once("config.php"); order by m.ordem, t.ordem, t.nome"; - $rs = execQuery($sql); + $rs = DB::execQuery($sql); - while($row = mysql_fetch_array($rs)){ + while($row = mysqli_fetch_array($rs)){ ?>
  • -- libgit2 0.21.2