[FX.php List] Parsing problem?
Bob Patin
bob at patin.com
Sun Aug 5 22:11:55 MDT 2007
Rodney,
If you did this in Dreamweaver, that might be where your problem
occurred.
In your raw code, do you see the < bracket, or do you see %3C ? I
don't know HTML equivalents, but I bet that's the equivalent for a
left caret.
Good luck,
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
CONTACT US VIA INSTANT MESSAGING:
AIM or iChat: longterm1954
Yahoo: longterm_solutions
MSN: tech at longtermsolutions.com
ICQ: 159333060
On Aug 5, 2007, at 11:01 PM, Rodney Schmidt wrote:
> Dear friends:
>
> I am using a bit of code to return a search using FX.php findall.
> In one of
> my calculations, the URL returned in the browser is different from the
> actual code in the PHP request. I am sure that I am doing something
> dumb,
> but if someone can give me a suggestion, it would be appreciated.
>
> Thank you very much.
>
> --
> Rodney Schmidt
>
> MAC OS 10.4.10
> PHP 5.2.2
> Apache 1.3
> using FX.php
> --------------
> The PHP code below
>
> <a href="query.php?skip=<? echo ($skipsize-$groupsize); ?>">
>
> yields this URL in browsers and immediately returns to the first
> page of the
> query instead of the previous page:
>
> http://xxxxxxx/FX/query.php?skip=%3C?echo%20($skipsize-$groupsize);%
> 20?%3E
>
> The symbols < and > and " seem to be parsed incorrectly by PHP, or
> have I
> missed something here?
>
> (I am sure that I have made a dumb mistake . . .)
>
> -------
>
> The rest of the code is here:
>
> <?php
> include_once('FX.php');
> include_once('server_data.php');
>
> if(isset($_GET['skip'])){
>
> $skipsize=$_GET['skip'];
> }else{
> $skipsize=0;
> }
> $groupsize=25;
> $search = new FX($serverIP,$webCompanionPort);
> $search -> SetDBData('Inquiry.fp7','records',$groupsize);
> $search -> SetDBPassword($webPW,$webUN);
> $search -> FMSkipRecords($skipsize);
> $searchResult = $search -> FMFindall();
>
> ?>
>
> <?php if($skipsize>0){ ?>
> <a href="query.php?skip=0">First</a> |
> <a href="query.php?skip=<? echo ($skipsize-$groupsize); ?>">Prev</a>
> |
> <?php } ?>
>
> <?php
> if($skipsize + $groupsize<$searchResult['foundCount']){
> $pages = explode('.',($searchResult['foundCount']/$groupsize));
> $pages_skip = $pages[0];
> ?>
>
> <a href="query.php?skip=<?php echo ($skipsize + $groupsize);
> ?>">Next</a> |
> <a href="query.php?skip=<?php echo $pages_skip * $groupsize;
> ?>">Last</a>
> <?php } ?>
>
>
>
>
> _______________________________________________
> 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