Re: First Attempt to use DB failed.
| From: | Analysis & Solutions | Date: | Fri, 09 Aug 2002 21:34:29 +0000 |
| Subject: | Re: First Attempt to use DB failed. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111903@lists.php.net to get a copy of this message | ||
On Fri, Aug 09, 2002 at 04:27:56PM -0500, Jim Bailey wrote:
> $die_msg = "Connection to Database Failed"
Where's the terminating ";" on that prior line?
> $connect = mysql_connect("localhost","UserName","UserPW")
> or die("Connect Failed" ):
You put a ":" rather than ";" on the prior line.
Also, to make your debugging easier, use mysql_error() in your die
statements in order to figure out why things didn't work as expected.
Naturally, for that to be of any assistance, you'll need to clean up your
parse errors first. :)
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409