View Single Post
Old 05-14-2008, 03:02 PM   #3 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I dont get what you are trying to do. Are you trying to fill in the number of remaining TDs left from whatever you are doing? If so, do this

PHP Code:
//The number of TDs per row
$max 4;

//the number of results returned
$results 9;

//The offset we will be using
$offset 0;

//Add until the number of rows we are displaying is divisible by your max number of spaces per row.
while(($results+$offset)%$max != 0)
{
echo 
"<td></td>";
$offset++;

__________________

Village Idiot is offline  
Reply With Quote