summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-02-26 11:50:57 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-02-26 11:50:57 +0000
commit77b0f6eeccfb4e183664d8b1bb4023e8075d6290 (patch)
tree0b697c32aa5d937fec3294d8848e8b03e79251cd /frontends/php/include/db.inc.php
parentc4b9f414885a3c6e67b23d09b48c3e32c5fd9336 (diff)
downloadzabbix-77b0f6eeccfb4e183664d8b1bb4023e8075d6290.tar.gz
zabbix-77b0f6eeccfb4e183664d8b1bb4023e8075d6290.tar.xz
zabbix-77b0f6eeccfb4e183664d8b1bb4023e8075d6290.zip
Improvements for overview.php (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1675 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index cfb57039..694d7de1 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -61,6 +61,10 @@
if($DB_TYPE == "MYSQL")
{
$result=mysql_query($query,$DB);
+ if(!$result)
+ {
+ echo "Error in query [$query] [".mysql_error()."]";
+ }
return $result;
}
if($DB_TYPE == "POSTGRESQL")