Page 2 of 2

Posted: Tue Mar 13, 2007 5:30 pm
by RobertGonzalez
How you lay out your content is entirely dependent on how you use the modulus and where in the loop you do it.

Posted: Tue Mar 13, 2007 5:47 pm
by thiscatis
The problem is that the while repeats the for loop or the for loop repeats the while :S

Posted: Tue Mar 13, 2007 6:04 pm
by RobertGonzalez
Read through the code, and for each step, imagine the code processing (like a debugger would). This should shed some light on how things are going to render.

Posted: Tue Mar 13, 2007 8:20 pm
by thiscatis
Ok, went trough the code.
If i put the FOR loop over the while it just loops the result image 80 times before going to the next.
if I put the for loop in the WHILE statement it just keeps on showing the same image...

Posted: Tue Mar 13, 2007 9:49 pm
by RobertGonzalez
You are using $row in your limit portion of your for loop, but it is never set to anything. And it looks like the brackets in that code don't match up. Is it throwing any errors?