[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Netscape ignores %20 with $sort="id DESC"
Maurice,
If I do $sort = "id+DESC" I get this error:
Warning: Supplied argument is not a valid MySQL result resource
(not sure what you mean by "URI escape $sort"). Tell me more...
Thanks!
Paul.
Maurice Aubrey wrote:
> On Sat, Dec 01, 2001 at 06:52:13PM -0700, Rosyna wrote:
> > htmlentities($sort);
> >
> > http://www.php.net/manual/en/function.htmlentities.php
>
> No. You need to URI escape $sort. In this case, it
> just needs to be:
>
> $sort = "id+DESC"
>
> You should do the HTML encoding after that, but in this
> case it isn't necessary. See RFC 2396.
>
> --
> Maurice Aubrey <maurice@xxxxxxxxxxx>
>
> GPG Key http://creation.com:81/~maurice/gpg.txt
> Fingerprint 1568 87BB 8934 F186 D116 1BC2 8BD1 F4E9 1C19 E0DF
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <mysql-thread92857@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
This mailing list archive is a service of Copilot Consulting.