mysql_connect problem
| From: | DiZEM PGC | Date: | Mon, 02 Feb 2004 14:42:00 +0000 |
| Subject: | mysql_connect problem | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32755@lists.php.net to get a copy of this message | ||
I try connecting to an existing mysql DB. The first time I directly called
mysql_connect with all required
params (Path/Database,User,Password) and established a connection without
problems.
Second time I have used a script that includes a self-written class
containing a few Database functions.
One of these functions, named 'db_login', does exactly the same as
mysql_connect (w. the same params). First case (directly calling) works fine. The
second case doesn't report any error and doesn't establish a connection.
What could be the reason for this strange behavior ?
DiZEM
--
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++