ID: 15458 Updated by: [EMAIL PROTECTED] -Summary: mysql_pconnect return boolean Reported By: [EMAIL PROTECTED] Status: Open Bug Type: MySQL related Operating System: Solaris 8 PHP Version: 4.1.1 New Comment:
$con = mysql_connect($db_Hostname, $db_UserName, $db_Password) || die("Can't Connect to Database: ".mysql_error()); print gettype($con); print $con; The connection is okay, no error is given. PHP generates an error if the username or password is incorrect. Variable $con supposed to be a link, but instead its a boolean with the value true(1). Just for info, other php scripts work fine in conjuction with mysql. but for this script I need to have seperate links, instead of de default last one. Compile options: --with-mysql Previous Comments: ------------------------------------------------------------------------ [2002-02-08 17:19:27] [EMAIL PROTECTED] $con = mysql_pconnect($db_Hostname, $db_UserName, $db_Password) || die("Can't Connect to Database: ".mysql_error()); print gettype($con); print $con; The connection is okay, no error is given. PHP generates an error if the username or password is incorrect. Variable $con supposed to be a link, but instead its a boolean with the value true(1). Just for info, other php scripts work fine in conjuction with mysql. but for this script I need to have seperate links, instead of de default last one. Compile options: --with-mysql ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15458&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php