summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
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;
}