FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to change character to % character?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to change character to % character? [message #183346 is a reply to message #183345] Sun, 20 October 2013 19:50 Go to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 20-10-2013 21:17, Arno Welzel wrote:
> richard, 2013-10-20 18:27:
>
>> I noticed that whenever a song is clicked on that has an apostrophe in the
>> name, an error is now being generated.
>> The song still plays and the name is reported correctly.
>>
>> So how can I detect any and all 's within a string and convert them to the
>> %27 version?
>>
>> I had a look at preg-match and don't think that will help.
>
> See <http://php.net/manual/en/function.htmlspecialchars.php>.
>
>

or one of these:
http://php.net/manual/en/pdo.prepared-statements.php
http://php.net/manual/en/mysqli.quickstart.prepared-statements.php
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Load Data from XML url
Next Topic: Re: Help with app Crash
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 05 16:19:27 GMT 2024

Total time taken to generate the page: 0.04886 seconds