[FX.php List] Problem with AddSortParam

Joel Shapiro jsfmp at earthlink.net
Wed Oct 4 13:44:57 MDT 2006


On Oct 4, 2006, at 12:35 PM, Chris Bisgard wrote:
> It seems big enough that I must be missing something obvious.

Hi Chris

Have you changed the way you load the date from the GET?

$date=$_GET['date'];

instead of:

$date=$_POST['date'];

-Joel


On Oct 4, 2006, at 12:35 PM, Chris Bisgard wrote:

> Hi all,
>
> This is a strange problem, and I'm just not sure how to debug it. I  
> have a fairly simple script that just lists events for any given  
> date from a calendar database in FM8. I am trying to sort the  
> results by date, but no matter what I do with AddSortParam, the  
> results come up sorted by the -recid. Even if I try sorting by a  
> text field instead of date, it still sorts by -recid.
>
> Incidentally, I have a similar script that queries another database  
> on the same server, and it sorts everything fine. The only  
> difference is that the query in the broken script comes from a GET  
> function (hyper-linked from a little calendar table, so people can  
> click the date they want), and the script that works properly uses  
> POST data from a form. Would that have anything to do with it?
>
> I will post the entire script if anyone needs to see it, but mainly  
> I was just hoping for some guidance on what to look for that moght  
> be causing the AddSortParam function not to work. It seems big  
> enough that I must be missing something obvious.
>
> Thanks in advance,
> Chris Bisgard
> _______________________________________________
> 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