mirror of
https://github.com/Mibew/java.git
synced 2025-01-22 17:40:35 +03:00
Changed perform_query function. It now returns a reference to the query result
This commit is contained in:
parent
65404ac1d2
commit
7f31dfa2af
@ -400,7 +400,11 @@ function db_fetch_assoc($result){
|
||||
|
||||
function perform_query($query, $link)
|
||||
{
|
||||
mysql_query($query, $link) or die(' Query failed: ' . db_error($link));
|
||||
$result = mysql_query($query, $link);
|
||||
if (! $result) {
|
||||
die(' Query failed: ' . db_error($link));
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
function select_one_row($query, $link)
|
||||
|
Loading…
Reference in New Issue
Block a user