Added wrapper functions for mysql_fetch_assoc and mysql_fetch_row

This commit is contained in:
Dmitriy Simushev 2011-11-10 15:14:11 +00:00
parent 20701ad5da
commit b22f5456fc

View File

@ -389,6 +389,15 @@ function db_insert_id($link)
return mysql_insert_id($link); return mysql_insert_id($link);
} }
function db_fetch_row($result)
{
return mysql_fetch_row($result);
}
function db_fetch_assoc($result){
return mysql_fetch_assoc($result);
}
function perform_query($query, $link) function perform_query($query, $link)
{ {
mysql_query($query, $link) or die(' Query failed: ' . db_error($link)); mysql_query($query, $link) or die(' Query failed: ' . db_error($link));