function getVer($cc) { while ($key = key($_GET)) { if ($key==$cc) {return 1;} next($_GET); } return 0; } function getDBConnection () { include("_db.php"); //contains the given DB setup $db, $server, $user, $pass $conn = mysql_connect($server, $user, $pass); if (!$conn) { //echo "Connection to DB was not possible!"; end; } if (!mysql_select_db($db, $conn)) { //echo "No DB with that name seems to exist at the server!"; end; } return $conn; } ?>