23.05.2016, 21:47
1. Why you dont use mysqli?
2. Try like this:
2. Try like this:
PHP код:
$sql="SELECT * FROM $tbl_name ORDER BY ID DESC";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
function GetBannedCount()
{
return $count;
}
function GetBannedList()
{
while($row = $result->fetch_assoc($result)) {
echo "<tr><td>" . $row["TimeDate"]. "</td><td>" . $row["PlayerName"]. " " . $row["By"]. "</td><td>" . $row["Reason"]. "</td></tr>";
}
}
mysql_close();
?>