+ 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:
pioder
2009-05-03 10:50:00 +00:00
parent 6cc36dc266
commit b1f37b6ea5
43 changed files with 296 additions and 193 deletions

View File

@@ -121,7 +121,7 @@ switch(trim($_GET['mode']))
$uid = $_GET['id'];
$sql = "SELECT `u_id`, `nick` FROM `".USERS_TABLE."` WHERE `u_id`='$uid'";
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain user information');
$user = @mysql_fetch_array($query);
$user = DataBase::fetch($query);
if ($user['u_id']=='')
{
message_forum($lng['no_user'],'index.php');
@@ -136,9 +136,9 @@ switch(trim($_GET['mode']))
include('./skins/'.$default_skin.'/warns_view_body.tpl');
$sql = "SELECT * FROM `".WARNINGS_TABLE."` WHERE `u_id`='$uid'";
$query = DataBase::sql_query($sql,'GENERAL','Could not obtain user warns information');
$result = mysql_num_rows($query);
$result = DataBase::num_rows($query);
$warns_count = 0;
while($item = mysql_fetch_array($query))
while($item = DataBase::fetch($query))
{
$skin = array(
'value'=>$item['value'],