Here's the code:
Code:
<?
if (eregi("block-Cheats.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
ob_start();
global $prefix, $dbi;
include("modules/Cheats/config.php");
$latest = "SELECT * FROM '".$prefix."'_cheats DESC LIMIT 5";
$latest = mysql_query($latest);
$count = mysql_num_rows($latest);
$content = "5 Latest Cheats
";
While ($show = MySQL_fetch_array($latest)){
$cname = $show['cheat_game'];
$cheat = $show['cheat_cheat'];
$cheat = "$cheat[0]$cheat[1]$cheat[2]$cheat[3]$cheat[4]";
$content .= "$cheat - $cname
";
}
$content .= "We have $count cheats";
ob_end_clean();
?>
No errors, but it just won't out put any MySQL data.