diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-10 12:53:34 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-02-10 12:53:34 +0000 |
commit | f54860dfdd8d24de1dc26a530d95a23343756dc2 (patch) | |
tree | 76234c5a861862aee2170b41cf7a517e82633e93 /frontends/php/include/db.inc.php | |
parent | 455a64dfe19d7700fa1fe10edecb1ea82fa5dcce (diff) | |
download | zabbix-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.php | 9 |
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) |