include "connect.php"; // of: mysql_connect("localhost","speln","eijereggy2"); mysql_select_db("5178_speln"); if (!isset($_GET["version"])) $version = "2.00"; else $version = $_GET["version"]; if (!isset($_GET["category"])) { $sql = @mysql_query("SELECT * FROM spellen WHERE toetevoegen IS NULL ORDER BY id DESC LIMIT 15"); } else { $cat = addslashes($_GET["category"]); $sql = @mysql_query("SELECT * FROM spellen WHERE categorie = '".$cat."' AND toetevoegen IS NULL LIMIT 100"); } if ($version == "0.91") { echo "\n"; echo " \n"; echo " Speele\n"; echo " http://www.speele.nl/\n"; echo " Speele.nl, speel de leukste online spele!\n"; echo " nl\n"; } else { echo "\n"; echo " \n"; echo " Speele.nl\n"; echo " http://www.speele.nl/\n"; echo " Speele.nl, speel de leukste online spele!\n"; echo " nl\n"; } while ($record = mysql_fetch_array($sql)) { echo " \n"; echo " ".$record["naam"]."\n"; echo " http://www.speele.nl/spel".$record["id"].".htm\n"; echo " \n"; } if ($version == "0.91") { echo " \n"; echo ""; } else { echo " \n"; echo ""; }