incrementor in loop is not incrementing.. any thoughts?
| From: | Aaron Wolski | Date: | Tue, 05 Aug 2003 13:57:38 +0000 |
| Subject: | incrementor in loop is not incrementing.. any thoughts? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-29678@lists.php.net to get a copy of this message | ||
I have this:
$threadQuery = db_query("SELECT id,type,colourID FROM kcs_threads WHERE
id=".escapeValue($threadsResult[id]));
for ($z=0;$threadResult = db_fetch($threadQuery);$z++) {
echo $threadResult[colour]." ".$z;
}
which is producing:
223 0
225 0
301 0
304 0
326 0
333 0
211 0
223 0
224 0
225 0
356 0
95 0
100HL 0
102 0
Obviously $z is not incrementing. ANY clue why?
Thanks!
Aaron
Aaron Wolski, Project Manager
Martek Business Solutions Inc.
www.martekbiz.com <http://www.martekbiz.com/>
905-780-9574
aaronjw@martekbiz.com