Jump to content

Archived

This topic is now archived and is closed to further replies.

StirCrazy

if $counter is divisible exactly by 3

Recommended Posts

Wonder if anyone can help me.
What is the correct syntax for the below?

if $counter is divisible exactly by 3 {
?>
    </tr>
<?php

}



Cheers guys,
S.C>

Share this post


Link to post
Share on other sites
[code]<?php
if(($counter % 3) == 0)
  echo "</tr>";
?>[/code]

Share this post


Link to post
Share on other sites
You'll probably want to use something like this:
if(($counter % 3) == 0)

EDIT: Doh! Me too slow.

Share this post


Link to post
Share on other sites
You can call me "Quikfingers McGee".  ;)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.