Re: Re: PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB

From: Date: Sun, 18 Mar 2001 09:16:16 +0000
Subject: Re: Re: PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-49275@lists.php.net to get a copy of this message
Jani, $db=mysql_connect ("localhost", "argosnet", ""); if ($db<=0) { print ("<FONT COLOR=\"Red\"><STRONG>"); print ("SQL Server error, cannot connect server<STRONG></FONT><BR>"); exit; } # Ok at this level $rc=mysql_select_db($database,$db); if ($rc<=0) { print ("<FONT COLOR=\"Red\"><STRONG>"); print ("SQL Server error, cannot select database<STRONG></FONT><BR>"); exit; } # rc<=0, then error! If mysql_error is not trustable, I cannot tell what is the error, but there's one At 10:13 18/03/2001 +0100, Jani Taskinen wrote: >On Sun, 18 Mar 2001, Laurent LEVIER wrote: > >>But I don't use mysql_error() in my basic script. I added it to display the error >>message. >> >>Without it, the error remains, but we just dont know what error it is :) >> >>So there is really a problem with connect (and also pconnect, I also tried). >>Where is that usename ?? > >Hmm..I can't read minds so please explain WHAT doesn't work? > >--Jani Laurent LEVIER IT Systems & Networks, Unix System Engineer Security Specialist Argosnet Security Server : http://www.Argosnet.com "Le Veilleur Technologique", "The Technology Watcher"

« previous php.dev (#49275) next »