|
-
Jan 12th, 2007, 10:16 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Tabulate data in rows/columns - Help Needed
hi guyz,
i don't know how to put this straight but i'll try...
i have a database outputed result that i want to tabulate in rows and columns
in the following format;
Picture1 Picture2 Picture3
Picture4 Picture5 Picture6
and so on...
how do i go about it?
in ASP, i can do this by usind the Mod function
i.e
Code:
If 5 Mod 3 = 0 Then
'generate a new row
Else
'generate a new column
End If
well in other words...what i want to know is if there is a function in PHP that works like the Mod function in ASP
Last edited by modpluz; Jan 12th, 2007 at 10:33 PM.
-
Jan 12th, 2007, 11:02 PM
#2
Re: Tabulate data in rows/columns - Help Needed
-
Jan 13th, 2007, 05:28 PM
#3
Thread Starter
Fanatic Member
Re: Tabulate data in rows/columns - Help Needed
You damn right penagate...
i should have thought of the % operator as the modulus operator
thanks a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|