Re: Problem connecting to database.

From: Date: Tue, 02 Jul 2002 13:34:30 +0000
Subject: Re: Problem connecting to database.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1787@lists.php.net to get a copy of this message
On Tue, 2 Jul 2002 09:19:09 -0400, Sean Chambers wrote: >I can connect fine using the following: >$conn = mysql_connect($db_host,$db_user,$db_pass); >if (!$conn) { > echo mysql_error(); >} > >But when I attempt to do the following it tells me: DB Error: not found > >$dsn = $db_type.'://'.$db_user.':'.$db_pass.'@'. $db_host >.'/'.$db_name; Does the database named $db_name exist on your system? - Martin

« previous php.pear.general (#1787) next »