Hi, I am experiencing a problem with this function;
funcion do_connect($server, $db, $user, $pass){ $link = @mysql_pconnect($server, $user, "$pass") or die("error: mysql_pconnect()"); mysql_select_db($db) or die("error: mysql_select_db()"); } when supplied with variables that are correct (server, db, etc) it fails at mysql_select_db(), however if I remove "or die("error: mysql_select_db()")" it works. Can anyone explain why. My config is apache 1.3.14, php 4.1, mysql 3.23.41 Thanks, Malcolm -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]