Page 1 of 1

For loop error

Posted: Tue Sep 14, 2004 9:59 am
by ljCharlie
Can anyone tell me what's wrong with the following for loop?

Code: Select all

for($numOfCells=1; $numOfCells<=$totalRows_rsArchived; $numOfCells++){

}
The error I got is:

Parse error: parse error, expecting `','' or `';'' in /www/home/mySite/myPhotoGallery.php on line 206

Line 206 refers to the for loop above.

Any help is grateful!

ljCharlie

Posted: Tue Sep 14, 2004 10:01 am
by m3mn0n
Have a read: viewtopic.php?t=21171

And post a bit more of the code. An error can be said to occur on a line, while it actually occurs elsewhere.

Posted: Tue Sep 14, 2004 10:23 am
by ljCharlie
Thanks! I got it fixed. I forgot one semi-colon on a line that's above that line. It was pointing me to the wrong that is why.

ljCharlie