Re: Question
| From: | Dan Phiffer | Date: | Mon, 10 Mar 2003 20:10:50 +0000 |
| Subject: | Re: Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139019@lists.php.net to get a copy of this message | ||
Perhaps something like:
<?php
if ($record_count % 4 == 0) {
echo "</td>\n<td>";
}
?>
HTH,
-Dan
"Clint Tredway" <ctredway@LEEFIN.COM> wrote in message
news:6A9B410FFC85014BBAA8ED37D29E93955B9217@exchange.leefin.com...
> I have a display of images that every fourth image I want to start a new
> column. In ColdFusion I would use the MOD operator like this:
>
> if query.recordcount MOD 4 eq 0
> </td>
> <td>
> /if
>
> I am just having a brain lapse today, can someone help me do this same
> functionality in PHP?
>
> Thanks!