Re: First Attempt to use DB failed.

From: Date: Fri, 09 Aug 2002 21:36:14 +0000
Subject: Re: First Attempt to use DB failed.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-111905@lists.php.net to get a copy of this message
Jim, Are you using a port other than the default (3306)? If so you can specify it by localhost:3306 Is the server really running? > I ran the following PHP script: > > <?php > $die_msg = "Connection to Database Failed" > $connect = mysql_connect("localhost","UserName","UserPW") > or die("Connect Failed" ): > echo $connect; > $db = mysql_select_db("db_cap",$connect) > or Die("db Select Failed"); > ?> > > I received the following error message > Parse error: parse error, unexpected T_VARIABLE in > C:\FREEDEV\XITAMI\webpages\private\test.php on line 3 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -Pushkar S. Pradhan

« previous php.general (#111905) next »