+ Changed from MySQL to MySQLi native driver.
+ Added 2 new functions in DataBase class: fetch($query) and num_rows($query) git-svn-id: https://svn.pioder.pl/uf-svn/uF@20 72ec579a-5ced-4fa4-82f3-afba5d98df2f
This commit is contained in:
@@ -196,7 +196,7 @@ switch($_GET['mode'])
|
||||
}
|
||||
}
|
||||
$sql = "SELECT * FROM ".USERS_TABLE." WHERE `u_id`='$uid'";
|
||||
$userinfo = @mysql_fetch_array(DataBase::sql_query($sql,'GENERAL','Could not obtain user information'));
|
||||
$userinfo = DataBase::fetch(DataBase::sql_query($sql,'GENERAL','Could not obtain user information'));
|
||||
if ($userinfo['rank']=='')
|
||||
{
|
||||
admin_message_forum($lng['no_user'],'admin_users.php?mode=view');
|
||||
@@ -296,7 +296,7 @@ switch($_GET['mode'])
|
||||
$limit = 'LIMIT 0, 30';
|
||||
$page=1;
|
||||
}
|
||||
$count = @mysql_fetch_array(DataBase::sql_query("SELECT COUNT(`u_id`) as `u_id`
|
||||
$count = DataBase::fetch(DataBase::sql_query("SELECT COUNT(`u_id`) as `u_id`
|
||||
FROM ".USERS_TABLE,'GENERAL','Could not obtain count amout of users'));
|
||||
$count = $count['u_id'];
|
||||
$count = ceil($count /30);
|
||||
@@ -429,7 +429,7 @@ switch($_GET['mode'])
|
||||
}
|
||||
}
|
||||
$query = DataBase::sql_query($sql,'CRITICAL','Could not obtain user information.');
|
||||
while($result = mysql_fetch_array($query))
|
||||
while($result = DataBase::fetch($query))
|
||||
{
|
||||
$skin = array(
|
||||
'id'=>$result['u_id'],
|
||||
|
||||
Reference in New Issue
Block a user