RE: [PHP] Please Help with LOOP!!
| From: | Jerome Houston | Date: | Fri, 19 Jul 2002 01:03:48 +0000 |
| Subject: | RE: [PHP] Please Help with LOOP!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-108361@lists.php.net to get a copy of this message | ||
martin-
you're totally right except for one thing....
$count=1; while($query_data = mysql_fetch_array($result)) { $price = $query_data["price_lq"]; $RowColor = useColor(); // current echo statements here } $count++;this code will give him the exact same problem. the $count++; line needs to be *inside* the while loop. probably a typing mistake on your part, but i didn't want this guy to get help that ended him up with the same problem =). -jerome _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx