query($news_query); $result_row = $result -> fetch_row(); if (!$result_row) { print("There's nothing here right now!"); } // /* Not featuring any games for now! ** don't forget line ~78 if the featured game thingo is ever turned back on. ** // randomise the game that is presented as "Featured Game" in the bottom right area of the site $fea_game = rand(0,6); // number of games to choose from - hardcoded in for now but can use count rows of games in future $fea_game_q = "SELECT name, summary FROM games WHERE sorter = " . $fea_game . ""; $fea_game_res = $connection -> query($fea_game_q); $fea_game_res_row = $fea_game_res -> fetch_row(); // */ ?>