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

Home » Imported messages » comp.lang.php » str_replace does not like empty quotes
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: str_replace does not like empty quotes [message #186259 is a reply to message #186258] Sun, 22 June 2014 00:08 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 6/21/2014 8:05 PM, Geoff Muldoon wrote:
> cmbecker69(at)arcor(dot)de says...
>>
>> Geoff Muldoon wrote:
>
>>> c) Google PHP stripslashes.
>>
>> Good point! However, the need for removing backslashes begs the
>> question where these backslashes come from in the first place.
>
> Probably depends amongst other things on whether the database insert
> facility uses strings or bind variables.
>

Makes no difference whether strings or bind values are used. Properly
processed, both work equally well in a database.

> Of course, bind variables are massively better, but I doubt that Richard
> is up to knowing about them yet.
>
> GM
>

One opinion. But bound values have their problems, also. They are
neither better nor worse than properly escaping values. Just another
way of doing things.

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
[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
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: PDO fetch with SQL server
Next Topic: Putting it all together
Goto Forum:
  

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

Current Time: Thu Nov 28 00:46:44 GMT 2024

Total time taken to generate the page: 0.04104 seconds