Date: 02/29/00
- Next message: Rasmus Lerdorf: "Re: [PHP3] file to variable"
- Previous message: Murray Shields: "Re: [PHP3] MySQL or Informix???"
- Maybe in reply to: Aaron Grewell: "[PHP3] mysql_connect problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----Original Message-----
From: Henry F. Marquardt [mailto:hank <email protected>]
Sent: Tuesday, February 29, 2000 7:01 PM
To: Aaron Grewell
Subject: RE: [PHP3] mysql_connect problem
Hmm,
One statement bothers me ... "It doesn't give me errors, it just doesn't
connect" ... do you *know* it isn't giving an error?
if(!($link=mysql_connect($host,$user,$pass))) {
printf("Error %d:%s",mysql_errno($link),mysql_error($link));
}
If you answered no .... run it again with this kind of error checking. If
yes, then you are connecting and you have some other problem ... db
selection or query problems.
Please clarify.
Hank
-----Original Message-----
From: Aaron Grewell [mailto:agrewell <email protected>]
Sent: Tuesday, February 29, 2000 6:32 PM
To: php3 <email protected>
Subject: [PHP3] mysql_connect problem
Like a number of folks I've seen here, I'm trying to get PHP and MySQL
working together. I compiled
PHP as a DSO with MySQL support, and the PHP part works fine. The problem
is that when I call
mysql_connect I can't connect. I have verified that the userid and password
work fine with the
mysql client, just not with PHP. Where is the best place to start
troubleshooting this thing? It
doesn't give me errors, just doesn't connect.
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rasmus Lerdorf: "Re: [PHP3] file to variable"
- Previous message: Murray Shields: "Re: [PHP3] MySQL or Informix???"
- Maybe in reply to: Aaron Grewell: "[PHP3] mysql_connect problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

