From 51f6af7ced37e4980c9c26163199608e1d35832e Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 9 Nov 2011 19:43:49 +0000 Subject: [PATCH] Added wrapper function for mysql_error --- src/messenger/webim/libs/common.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index dbe9e24c..cafdb61c 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -379,6 +379,11 @@ function db_escape_string($string, $link = NULL) return mysql_real_escape_string($string, $link); } +function db_error($link) +{ + return mysql_error($link); +} + function perform_query($query, $link) { mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link));