- Impact
- 1
I am working a listing of some information and I am stuck. How can I check if something is dividable by a number that equals a whole number.
Example.
while ($row = mysql_fetch_array($result))
{ echo ' $link' }
After five loops I want it to echo $info. Then return to the while loop until it gets to 10 then echo $info again, etc. Basically would echo $info every 6th loop.
Is there an easy way to do this with out having to code in a bunch of if statements.
Example.
while ($row = mysql_fetch_array($result))
{ echo ' $link' }
After five loops I want it to echo $info. Then return to the while loop until it gets to 10 then echo $info again, etc. Basically would echo $info every 6th loop.
Is there an easy way to do this with out having to code in a bunch of if statements.















