23.05.2016, 21:58
Quote:
How is you code different than mine? Couldn't find smth new in yours.
|

EDIT: 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 = mysql_fetch_assoc($result)) {
echo "<tr><td>" . $row["TimeDate"]. "</td><td>" . $row["PlayerName"]. " " . $row["By"]. "</td><td>" . $row["Reason"]. "</td></tr>";
}
}
?>