View Single Post
Making a block, got no output.
Old
  (#1 (permalink))
Lang
Junior Member
 
Status: Offline
Posts: 4
Join Date: Oct 2004
Location: Smiths Falls
Making a block, got no output. - 10-18-2004, 04:16 PM

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.
  Send a message via AIM to Lang Send a message via MSN to Lang  
Reply With Quote