05-14-2008, 03:02 PM
|
#3 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
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++; }
|
|
|
|