[FX.php List] Can you pull from array?
Gjermund Gusland Thorsen
ggt667 at gmail.com
Wed Oct 18 09:30:15 MDT 2006
Why not try the examples that comes with FX.php?
It's in there ;-)
index.php on line 123 there is $counter
what about echoing that value?
ggt667
On 10/18/06, David Tinoco <davet15 at hotmail.com> wrote:
>
> Dan,
>
> Sorry. My idea is that I want to use a counter to update which record number
> of the find I would show - and to answer your question, I meant the contents
> of the field. Basically the PHP request a search and pulls 15 records that
> contain popular searches and shows these.
>
> The script has to just grab 15 random searches and display the field
> contents. As I said, the could below handles the search and the html
> make-up. I just need to replace the THis is a test, so it would become (see
> the bold):
>
> $cells=$popularResult['foundCount'];
> $curcells=$cells;
> $rows=ceil($cells/3);
> $falsecells=$rows*3;
> $leftcells=$falsecells-$cells;
> $currows=0;
> $i = 0;
> while($currows<$rows && $cells-1>$leftcells)
> {
> echo'<td class="Bold11_Blue2">Foudcount [$i]</td>';
> $curcells--;
> if($cells-$curcells==3)
> {
> echo'</tr><tr>';
> $cells=$curcells;
> $currows++;
> }
> $i++;
> }
> If($cells>0)
> {
> for($num=0;$num<$cells;$num++)
> {
> echo'<td>Foundcount [$i]</td>';
> }
> }
>
> How would I code the foundcount[] part to actual FX syntax?
>
> ________________________________
> Stay connected with the news, people, places and online services that matter
> to you on Live.com Try it!
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
More information about the FX.php_List
mailing list