summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-10 12:53:34 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-10 12:53:34 +0000
commitf54860dfdd8d24de1dc26a530d95a23343756dc2 (patch)
tree76234c5a861862aee2170b41cf7a517e82633e93 /frontends/php/include/db.inc.php
parent455a64dfe19d7700fa1fe10edecb1ea82fa5dcce (diff)
downloadzabbix-f54860dfdd8d24de1dc26a530d95a23343756dc2.tar.gz
zabbix-f54860dfdd8d24de1dc26a530d95a23343756dc2.tar.xz
zabbix-f54860dfdd8d24de1dc26a530d95a23343756dc2.zip
- improved Templates logic (Eugene)
- speed improvement for proc.num of Tru64 (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2631 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 7d9c1cf4..8f6c2b68 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -79,7 +79,7 @@
{
global $DB,$DB_TYPE;
-# echo $query."<br>";
+ $result = FALSE;
if($DB_TYPE == "MYSQL")
{
@@ -90,14 +90,15 @@
error("SQL error: ".mysql_error());
error("Query: $query");
}
- return $result;
}
if($DB_TYPE == "POSTGRESQL")
{
$result=pg_exec($DB,$query);
- return $result;
}
- return FALSE;
+
+//SDI("DBexecute($query) = '".$result."'");
+
+ return $result;
}
function DBfetch($result)