Re: Any Clues Here???

From: Date: Fri, 17 Nov 2000 19:04:36 +0000
Subject: Re: Any Clues Here???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25948@lists.php.net to get a copy of this message
Other than doing a if(!$link){ die("Could not open DB"); } I don't know. Start commenting out lines until it parses then go from there. --Joe On Fri, Nov 17, 2000 at 02:06:02PM -0500, Bill Marlin wrote: > Is there something wrong in my php.ini file??? > This is on the latest greatest version of php which someday I will start to > learn if I can ever get it to run!!! > > I get this error when using <?php to begin with > test.php4: parse error, expecting `'('' on line 7 > $user = "Accent"; > > I get this error when using <? to begin with > test.php4: No mySQL support on line 10 > $link = mysql_connect( "localhost", $user, $pass ); > test.php4: parse error, expecting END_TAG' or > ';'' or `'{'' on line 12 > die ( "Could not open MySQL Database" ); > > ####THE CODE### > <html> > <head> > <title>Example</title> > </head> > <body> > <? > $user = "Me"; > $pass = "letmein "; > $db = "Test"; > $link = mysql_connect( "localhost", $user, $pass ); > if ( ! $link ) > die ( "Could not open MySQL Database" ); > print "Successfully connected to server<P>"; > > mysql_select_db ( $db ) > or die ( "Could not open $db: ".mysql_error() ); > print "Successfully selected database<P> "; > mysql_close ( $link ); > > ?> > </body> > </html> > > Bill Marlin > Web Site Specialist / EMT / Fire Fighter > > Accent Systems, Inc. > 193 Computrex Drive > Nicholasville, KY 40356 > [859] 887-1023 X104 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ "Real programmers don't comment their code. It was hard to write, it should be hard to understand."

« previous php.general (#25948) next »