Added wrapper function for mysql_error

This commit is contained in:
Dmitriy Simushev 2011-11-09 19:43:49 +00:00
parent 5a3af46203
commit 51f6af7ced

View File

@ -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));