name; $game_query="SELECT * FROM game WHERE category='" . $category->id . "' ORDER BY views DESC;"; } include("top.inc.php"); //De kleur berekenen switch(strtolower($category_name)){ case "willekeurig": $color="blue"; break; case "populairst": $color="green"; break; case "nieuwst": $color="orange"; break; case "behendigheid": $color="blue"; break; case "denk": $color="rose"; break; case "humor": $color="yellow"; break; case "avontuur": $color="brown"; break; case "afreageren": $color="orange"; break; case "multiplayer": $color="rose"; break; case "shooter": $color="darkrose"; break; case "race": $color="green"; break; case "sport": $color="orange"; break; case "vliegen": $color="brown"; break; case "retro": $color="bluepurple"; break; case "vecht": $color="green"; break; case "spongebob": $color="yellow"; break; case "casino": $color="darkgreen"; break; } $result=mysql_query($game_query); $count=mysql_num_rows($result); ?>