mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
Added wrapper function for mysql_error
This commit is contained in:
parent
5a3af46203
commit
51f6af7ced
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user