From 77b0f6eeccfb4e183664d8b1bb4023e8075d6290 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 26 Feb 2005 11:50:57 +0000 Subject: Improvements for overview.php (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1675 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/db.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'frontends/php/include/db.inc.php') 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") -- cgit