Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #15714
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | comp.lang.php |
| Subject | Re: rawurlencode problem |
| Date | Tue, 20 Oct 2015 18:29:24 +0200 |
| Lines | 30 |
| Message-ID | <d8n8f4Fe6g8U1@mid.individual.net> (permalink) |
| References | <d8kekpFmk8uU1@mid.individual.net> <d8kuhsFr019U1@mid.individual.net> <d8kveuFr6aqU1@mid.individual.net> <d8m0lvF49nbU1@mid.individual.net> <d8m1apF4ekcU1@mid.individual.net> <d8mcahF6vrlU1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net jCAZ26zjwqfi7kzHIFuEMwXhKBRBr8EphH3H8Fmn4wN2XN03kD |
| Cancel-Lock | sha1:jP1v/Pri8ukbMclMFkNof8vF7Q0= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| In-Reply-To | <d8mcahF6vrlU1@mid.individual.net> |
| Xref | csiph.com comp.lang.php:15714 |
Show key headers only | View raw
On 10/20/2015 10:29 AM, Derek Turner wrote: > On Tue, 20 Oct 2015 07:21:28 +0200, J.O. Aho wrote: > >> Sorry, missed that you don't post back anything, but still more sane to use >> the index, as you ALWAYS know the format of it, compare that with a >> string, which has kind of unlimited formats and characters, one day >> there may be a character which breaks your anchor again as it's not in >> your replacement array. > > Sorry, I now realise that you are confusing the HTML 'id' property with > the id in the database. The 'id' property in HTML serves as an anchor, > taking the browser to the right <h2> tag which is the deginning of the > info pointed to by the link. In other words, a completely different sort > of 'id'. Sorry, I pointed out to use the id from the database instead of the string and I can give you another example why: "Dutch House" "DutchHouse" will both be the same when you remove the space, then your anchor will not work, if you use the id from your database to anchor, then you will have something that is unique for that section. -- //Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-19 14:56 +0000
Re: rawurlencode problem Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-10-19 17:18 +0200
Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-19 15:48 +0000
Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 00:02 +0200
Re: rawurlencode problem Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-10-21 09:40 +0200
Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 18:33 +0200
Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-19 21:27 +0200
Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-19 19:43 +0000
Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 00:03 +0200
Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 07:10 +0200
Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 07:21 +0200
Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-20 08:29 +0000
Re: rawurlencode problem "J.O. Aho" <user@example.net> - 2015-10-20 18:29 +0200
Re: rawurlencode problem Arno Welzel <usenet@arnowelzel.de> - 2015-10-27 14:01 +0100
Re: rawurlencode problem Arno Welzel <usenet@arnowelzel.de> - 2015-10-27 14:04 +0100
Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-20 00:00 +0200
Re: rawurlencode problem Jerry Stuckle <jstucklex@attglobal.net> - 2015-10-19 19:35 -0400
Re: rawurlencode problem Derek Turner <frderek@suremail.je> - 2015-10-20 08:34 +0000
Re: rawurlencode problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-10-21 13:54 +0200
csiph-web