summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-06-04 10:37:48 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-06-04 10:37:48 +0000
commitc3cb3f34ea615de16fa507271ca61cf5f426b5c1 (patch)
treec375c800742bac451b7049f447082cbd604a3277 /frontends/php/include/db.inc.php
parentdee7748ce3a458856713e608569c47c6d5ea65d4 (diff)
downloadzabbix-c3cb3f34ea615de16fa507271ca61cf5f426b5c1.tar.gz
zabbix-c3cb3f34ea615de16fa507271ca61cf5f426b5c1.tar.xz
zabbix-c3cb3f34ea615de16fa507271ca61cf5f426b5c1.zip
Improvements for escalation management.
git-svn-id: svn://svn.zabbix.com/trunk@1813 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, 1 insertions, 3 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 2a9dd3da..64f07f63 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -78,15 +78,13 @@
{
global $DB,$DB_TYPE;
-# echo $query,"<br>";
-
if($DB_TYPE == "MYSQL")
{
$result=mysql_query($query,$DB);
if(!$result)
{
- echo "ERROR EXECUTING: $query<br>";
+ error("SQL error: ".mysql_error());
}
return $result;
}