mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-19 00:27:17 +00:00
fix: a lot of MySQL calls in templates replaced by MySQLi ones
This commit is contained in:
@@ -58,7 +58,7 @@ if(isset($id))
|
||||
|
||||
<?php
|
||||
$sql = "SELECT * FROM ".TB_PREFIX."banlist WHERE uid = ".$id."";
|
||||
$numbans = mysql_num_rows(mysql_query($sql));
|
||||
$numbans = mysqli_num_rows(mysqli_query($GLOBALS["link"], $sql));
|
||||
?>
|
||||
<table id="member" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
@@ -74,8 +74,8 @@ if(isset($id))
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$result = mysql_query($sql);
|
||||
while($row = mysql_fetch_assoc($result))
|
||||
$result = mysqli_query($GLOBALS["link"], $sql);
|
||||
while($row = mysqli_fetch_assoc($result))
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user