fix: a lot of MySQL calls in templates replaced by MySQLi ones

This commit is contained in:
Martin Ambrus
2017-08-28 23:56:59 +02:00
parent 814a904343
commit 92b9a7b043
75 changed files with 427 additions and 427 deletions
+3 -3
View File
@@ -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>