php looping help
php looping help
Out of context: Reply #4
- Started
- Last post
- 4 Responses
- 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]