require "config.php"; @extract($_REQUEST); $my = mysql_connect($dbhost,$dbuser,$dbpass) or die("Can't connect to the database: " . mysql_error()); if (mysql_select_db($dbname) === FALSE) { die("Can't use the application database: " . mysql_error()); } $q = "SELECT * FROM calendar_tbl"; $res = mysql_query($q,$my) or die("We're sorry, we were unable to gather the current events from the database, please try again momentarily."); ?>