Bug #15458 Updated: mysql_connect return boolean

From: Date: Fri, 08 Feb 2002 22:22:39 +0000
Subject: Bug #15458 Updated: mysql_connect return boolean
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79774@lists.php.net to get a copy of this message
ID: 15458 Updated by: chang@digitalhighway.net -Summary: mysql_pconnect return boolean Reported By: chang@digitalhighway.net 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] chang@digitalhighway.net $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

« previous php.dev (#79774) next »