code cleanup

This commit is contained in:
Evgeny Gryaznov 2011-04-06 23:21:36 +02:00
parent 3d368c6783
commit 9d9cbf7e81

View File

@ -359,7 +359,7 @@ function connect()
function perform_query($query, $link) function perform_query($query, $link)
{ {
mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link) /*.": ".$query*/); mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link));
} }
function select_one_row($query, $link) function select_one_row($query, $link)
@ -372,7 +372,7 @@ function select_one_row($query, $link)
function select_multi_assoc($query, $link) function select_multi_assoc($query, $link)
{ {
$sqlresult = mysql_query($query, $link) or die(' Query failed: '.mysql_error($link)); $sqlresult = mysql_query($query, $link) or die(' Query failed: ' . mysql_error($link));
$result = array(); $result = array();
while ($row = mysql_fetch_array($sqlresult, MYSQL_ASSOC)) { while ($row = mysql_fetch_array($sqlresult, MYSQL_ASSOC)) {
@ -688,4 +688,4 @@ function jspath()
return "js/$jsver"; return "js/$jsver";
} }
?> ?>