Page 2 of 2

Re: using specific mysql data

Posted: Wed Apr 15, 2009 1:30 pm
by tomsace
Hi,
Figured it out using a

Code: Select all

if(fmod($record_number, NUM_COLUMNS) == 0)

Re: using specific mysql data

Posted: Wed Apr 15, 2009 2:03 pm
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.