$db = mysql_connect($db_host, $db_usr, $db_pwd) or die (mysql_error()); mysql_select_db($tdb, $db) or die (mysql_error());