Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11538

Re: str_replace ?

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.php
Subject Re: str_replace ?
Date 2013-10-21 18:43 +0000
Organization A noiseless patient Spider
Message-ID <l43sl2$3qu$5@dont-email.me> (permalink)
References <izrf52ctugy3.3kvtllz245pf$.dlg@40tude.net>

Show all headers | View raw


On Sun, 20 Oct 2013 20:48:26 -0400, richard wrote:

> In my database I am noting that none of the song names containing a
> single quote are being written.

There are some functions that have been suggested to you time and time 
again over the years for making strings safe for use within urls, within 
sql databases, and within html.

The fact that you still ask these questions shows that you do not absorb 
the answers when they are given to you.

Therefore, there is now no point in providing the correct answers to 
these questions.

Instead, here is a suggestion. In future, before posting a question here, 
try entering into google (or any other search engine of your choice) the 
question you wish to ask, for example:

<url:http://lmgtfy.com/?q=how+do+i+use+php+strings+with+single+quotes+in
+sql+queries>

Wow, the 4th through 7th replies point to php online manual pages. I 
wonder if any of those might refer to the function needed. Best go read 
them and see.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

str_replace ? richard <noreply@example.com> - 2013-10-20 20:48 -0400
  Re: str_replace ? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-20 21:02 -0400
    Re: str_replace ? richard <noreply@example.com> - 2013-10-20 21:55 -0400
      Re: str_replace ? David Robley <me@home.invalid> - 2013-10-21 12:41 +1030
    Re: str_replace ? richard <noreply@example.com> - 2013-10-21 09:16 -0400
  Re: str_replace ? Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 21:06 -0400
  Re: str_replace ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-21 18:43 +0000
    Re: str_replace ? Norman Peelman <npeelman@cfl.rr.com> - 2013-10-21 19:10 -0400
  Re: str_replace ? Norman Peelman <npeelman@cfl.rr.com> - 2013-10-21 19:14 -0400
  Re: str_replace ? Tobiah <toby@tobiah.org> - 2013-10-23 10:04 -0700
    Re: str_replace ? Scott Johnson <noonehome@chalupasworld.com> - 2013-10-23 17:03 -0700

csiph-web