[FX.php List] PHP Question

David Tinoco davet15 at hotmail.com
Thu Jul 20 15:49:49 MDT 2006


Thanks for everyones suggestions. I also created my own, which I think works (I tested it several times and it seems to work fine.)
This example, however is pure PHP without the FX part. I guess I would switch the "This is a test" part with the FX variables.
<html><head><h1>Table Test</h1></head><body><table><tr><?php
$cells=10; //the number of foundrecords$curcells=$cells;$rows=ceil($cells/3);$falsecells=$rows*3;$leftcells=$falsecells-$cells;$currows=0;while($currows<$rows && $cells-1>$leftcells){echo'<td>This is a test</td>';$curcells=$curcells-1;if($cells-$curcells==3) { echo'</tr><tr>'; $cells=$curcells; $currows++; }}If($cells>0){for($num=0;$num<$cells;$num++){echo'<td>This is a test</td>';}}?></tr></table></body></html>
_________________________________________________________________
Try Live.com: where your online world comes together - with news, sports, weather, and much more.
http://www.live.com/getstarted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060720/00ee6fd6/attachment.html


More information about the FX.php_List mailing list