[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Netscape ignores %20 with $sort="id DESC"
Try adding a line right below $sort:
$sort = urlencode($sort);
It should add the %20s for you.
- Jonathan
-----Original Message-----
From: Don Read [mailto:dread@xxxxxxxxx]
Sent: Sunday, December 02, 2001 8:35 PM
To: Paul Markov
Cc: mysql@xxxxxxxxxxxxxxx
Subject: RE: Netscape ignores %20 with $sort="id DESC"
On 02-Dec-2001 Paul Markov wrote:
> Hi,
> some users of my web are having problems with sorting a MySQL table
> because older
> versions of Netscape do not recognize a blank space and do not convert
> it into a %20.
>
> Here's my situation:
> $sort = "id DESC"
> if ($page_num != $total_num_page){print " <a
> ref=\"./propview.php?$guidestring&cur_page=$nextpage&sort=$sort\">Next
> Page</a>
>
> Netscape drops "DESC" because it can't convert the blank space into a
> %20. (this works fine with newer versions of Netscape. Internet
> Explorer does not have such a problem).
>
> Is there a workaround for this problem?
The '%20' is correct by current standards. For backwards compatibilty, you
can try a plus sign 'id+DESC' (be aware that this is now the "wrong" way to
do it).
Regards,
--
Don Read dread@xxxxxxxxx
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table query)
---------------------------------------------------------------------
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-thread92880@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-JHilgeman=ecx.com@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
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-thread92905@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.