using specific mysql data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

tomsace
Forum Contributor
Posts: 167
Joined: Thu Jan 01, 2009 8:07 pm

Re: using specific mysql data

Post by tomsace »

Hi,
Figured it out using a

Code: Select all

if(fmod($record_number, NUM_COLUMNS) == 0)
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: using specific mysql data

Post by McInfo »

If your arguments are integers, fmod() returns the same thing as the % (modulus) operator.

Edit: This post was recovered from search engine cache.
Post Reply