$i vs. $r

From: Date: Mon, 27 Mar 2006 21:37:47 +0000
Subject: $i vs. $r
Groups: php.general 
Request: Send a blank email to php-general+get-232673@lists.php.net to get a copy of this message
Does anyone have a clue why using this code doesn't work: $i = 0; while ($row = mysql_fetch_array($result)) { echo ("Blah blah blah"); $i++; } but this code does? $r = 0; while ($row = mysql_fetch_array($result)) { echo ("Blah blah blah"); $r++; } I don't use $i anywhere else on the page. -- Kevin Murphy Webmaster - Information and Marketing Services Western Nevada Community College www.wncc.edu (775) 445-3326

« previous php.general (#232673) next »