Syntax error

From: Date: Mon, 27 Nov 2000 23:53:32 +0000
Subject: Syntax error
Groups: php.general 
Request: Send a blank email to php-general+get-27507@lists.php.net to get a copy of this message
I keep getting a syntax error on line 25($y++).Ive tried every thing.I would appreciate some help and some insight into the nesting rules. $winner=111110011100111; $y=0; mysql_connect ("localhost","mpeloso","ampeloso") or die("a"); mysql_select_db("ampsoft_com") or die("b"); $resulta = mysql_query("Select User,Picks from Picks"); while($row=mysql_fetch_row($resulta)) {$x = $row[1]; echo $x; {for($i=0;$i<strlen($x);$i++) echo $i; {if ((substr($x,$i,1)==(substr($winner,$i,1)) $y++; echo $y;} }} mpeloso@princeton.edu

« previous php.general (#27507) next »