query("SELECT * FROM `games` where primkey =".$_SESSION['gameonline']); $gameres = $db->getrec(); $gamename = $gameres['filename']; $gamecat = $gameres['category']; $gameimg=$gameres['imagesmall']; ?> query("SELECT * FROM `category` where catid='".$_GET['cat']."'"); $catrec = $db->getrec(); $pagename =$catrec['catname'] ; } else { $pagesql = $db->query("SELECT * FROM `games` where primkey=".$_GET['gameid']); $pagerec=$db->getrec(); $pagename = $pagerec['gamename']; } $recs = $db->query("SELECT * FROM `metacontent` where pagename='".$pagename."'"); $view = $db->getrec(); ?>