Jump to content

Getting a Blank page :(


davidknag

Recommended Posts

heres my PHP:

i cant find the problem :(

<?php
			$dbhost  = 'localhost';
$dbname  = 'games';
$dbuser  = 'webuser';
$dbpass  = 'MY PASSWORD IS HIDDEN ';

$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());
mysql_select_db($dbname) or die(mysql_error());

if (isset($_GET['cat'])){
  $cat = $_GET['cat'];
  $get_games = mysql_query("SELECT * FROM games WHERE category = '$cat'");
  $get_games_rows = mysql_num_rows($get_games);
  if ($get_games_rows>=1){
    while ($fetch = mysql_fetch_assoc($get_games)){
        $id = $fetch['id'];
        $title = $fetch['title'];
	$thumb = $fetch['thumb'];



$string4= '<div class='gamelisting'>';
$string4= '<a href='play.php?id=".$id."'>';
$string4= '<img src='thumbs/".$thumb."' width='80' height='60' alt='' /><br />';
$string4= '".$title."</a></div>';
          
<?php echo $string1.$string2.$string3.$string4; ?>	 
        

    }
  }
   

}
else
     echo "Category does not exist";

 ?>

Link to comment
https://forums.phpfreaks.com/topic/223904-getting-a-blank-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.