>switch($_GET[page]) > { > connect(); > case "about" : Put the connect() before the switch (and keep error_reporting(E_ALL) at the top): connect(); switch($_GET[page]) { case "about" : .... } -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php