Re: Going blind? Plz hlp w/ parse error

From: Date: Fri, 21 Sep 2001 04:52:02 +0000
Subject: Re: Going blind? Plz hlp w/ parse error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67941@lists.php.net to get a copy of this message
Which line is line 10?!? ----- Original Message ----- From: "Anthony Rodriguez" <sbwi@bellatlantic.net> To: <php-general@lists.php.net> Sent: Thursday, September 20, 2001 2:34 PM Subject: [PHP] Going blind? Plz hlp w/ parse error > Please help! There is a parse error in like 10: > > <?php > > // file: "root/reg/add_2.php", updated: 08/25/01 > > $connection=@mysql_connect("localhost","afrodriguez","xxx") or > die ("No > connection!"); > > $db=@mysql_select_db("sbwresearch",$connection) or die ("No database!"); > > $qry_1="select * from cust_info where username=\"$username\""; > > $result=@mysql_query($qry_1,$connection) or die ("No query # 1!"); > > $row_1=@mysql_affected_rows(); > > if ($row_1==0) > > { > > $qry_2="insert into cust_info (username,password,mother) values > ("$username","$password","$mother") or die (No query #2!)"; > > $result=@mysql_query($qry_2,$connection); > > @mysql_free_result($result); > > @mysql_close($connection); > > echo " > > <html> > > etc. > > Thank you! > > > -- > 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 >

« previous php.general (#67941) next »