Search for $baseir1 = sqlcache($sqltitle, $cachelife, $baseir2);Add afterif(isset($baseir1)){Now search for<a href=\''.$playlink.'\'>Play</a></div></td> </tr>'; };Add after}else{ echo'<tr> <td width=\'45\' height=\'45\' valign=\'top\' class=\'content\'> No games have been added to this category yet. </td> </tr>'; }This comes up twice in the file, do it for each
Search forif(!$db->num_rows($r)){echo '<tr> <td colspan=\'2\' class=\'content\'>There currently are no games in this category.</td> </tr>';}Replace withif(!isset($r1)){echo '<tr> <td colspan=\'2\' class=\'content\'>There currently are no games in this category.</td> </tr>';}else{Search for}$count++;}Add after}
if(!isset($r1)){
Quoteif(!isset($r1)){isset should be used as a last resort when there are no variables to bounce an argument off.if(empty($r1)){ etc.Doesn't rely on url's to do the checking