php looping help
php looping help
- Started
- Last post
- 4 Responses
- georgietexan
I need help please I would like to loop this data for 6 records then make a colume with 6 records and so forth..
I have this code:
<img src="./images/">
- enobrev0
you're code didn't really come out there
- georgietexan0
Can anyone help me. I would like to loop my records 10 times then create a new column with 10 more rows of data and so forth. Can this be done with the code I have so far?
- davetufts0
[php]
$i=0;
while ($r = mysql_fetch_array($q)){
if (!($i % 10)) {
// do something on the 10th record
} else {
// do something on all other records
}
$i++
}
[/php]
