$db_host = "localhost"; $db_user = "root"; $db_pass = ""; $db_name = "test"; $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs = mysql_select_db($db_name);