How would you write a database connection for a database on which you haven't yet established a username or password? None of the following work:
$link = mysql_connect ("localhost" , "root" , "") or die(mysql_error()); mysql_select_db ("test", $link) or die(mysql_error()); $link = mysql_connect ("localhost" , "root") or die(mysql_error()); mysql_select_db ("test", $link) or die(mysql_error()); $link = mysql_connect ("localhost") or die(mysql_error()); mysql_select_db ("test", $link) or die(mysql_error()); Thanks. ____________________________________________________________________________________ No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail