[FX.php List] Can you pull from array?

David Tinoco davet15 at hotmail.com
Tue Oct 17 15:55:46 MDT 2006


Hello Everyone, Is there a way to pull out certain arrays from the FX Data array? I will give an example. 1. Let's say you do a find: $popular=new FX($serverIP,$webCompanionPort);$popular->SetDBData('File.fp7','Popular Searches',15);$popular->SetDBPassword($webPW,$webUN);$popularResult=$popular->FMFind();Now, I want to put these 15 results into a table 3 columns wide by 5 rows tall. $cells=$popularResult['foundCount'];$curcells=$cells;$rows=ceil($cells/3);$falsecells=$rows*3;$leftcells=$falsecells-$cells;$currows=0;while($currows<$rows && $cells-1>$leftcells){echo'<td class="Bold11_Blue2">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>';}}Now I just want to replace where it says "This is a test" with a field from the find. Is there something like an array that I can use instead of using the foreach ($popularResult as $key =>$popularData['Field'][0]), with a counter using i++ or something? Thanks,David
_________________________________________________________________
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-us&source=hmtagline 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20061017/7fe70cd4/attachment.html


More information about the FX.php_List mailing list