Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #13844
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: function for preserving special characters? |
| Date | 2014-06-13 20:51 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lng6bf$rc9$1@dont-email.me> (permalink) |
| References | <4s7xh8hg1pcy.ov70m21znbte$.dlg@40tude.net> <xWMmv.161186$Mk4.83187@fx12.iad> |
On 6/13/2014 8:45 PM, Richard Damon wrote: > On 6/13/14, 12:57 AM, richard wrote: >> When attempting to transfer records from one table to another, certain >> records refuse to be. >> Such as those with words like "I'm". >> What's even more confusing is, "It's" won't work, but "Cathy's" is ok? >> >> I know there is a procedure in PHP for dealing with this. >> I just can't find it right now. >> Can anyone help on this? >> > > There are several ways to do this. > > The first, is to use "Prepared Statements" to write to the database. > When you do this, you build of the command to perform independent of the > data to process (with place holders), and then connect this to the data > when you execute the prepared statement. > > The other option is to use something like mysqli_real_escape_string() > function or mysqli::real_escape_string() (there is also > mysql_real_escaple_string() if you are still using the obsolete mysql > routines). You could also do this with a str_replace, but you need to > determine all the cases that need to be escaped (this isn't as simple as > it might first seem, as the manual implies that this may depend on the > character set selected. > Richard, We've told RTS (Richard the Stupid) this many times but he never learns. Then he comes back and insults people who try to help him. That's the reason the regulars in this newsgroup aren't telling him. We're tired of him arguing (like he is with me earlier in this thread - and he's ALWAYS wrong) and insulting the rest of us. And of course he NEVER apologizes. Just search this newsgroup for RTS and look at some of the threads. You'll get an eyeful. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
function for preserving special characters? richard <noreply@example.com> - 2014-06-13 00:57 -0400
Re: function for preserving special characters? Tim Streater <timstreater@greenbee.net> - 2014-06-13 10:03 +0100
Re: function for preserving special characters? Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-13 15:32 +0200
Re: function for preserving special characters? Tim Streater <timstreater@greenbee.net> - 2014-06-13 14:42 +0100
Re: function for preserving special characters? Christoph Michael Becker <cmbecker69@arcor.de> - 2014-06-13 16:26 +0200
Re: function for preserving special characters? Tim Streater <timstreater@greenbee.net> - 2014-06-13 18:23 +0100
Re: function for preserving special characters? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-06-13 10:39 +0000
Re: function for preserving special characters? Paul Herber <paul@pherber.com> - 2014-06-13 12:37 +0100
Re: function for preserving special characters? Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-06-13 12:59 +0000
Re: function for preserving special characters? richard <noreply@example.com> - 2014-06-13 14:45 -0400
solved (was: function for preserving special characters?) richard <noreply@example.com> - 2014-06-13 09:57 -0400
Re: solved Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 10:14 -0400
Re: solved richard <noreply@example.com> - 2014-06-13 14:43 -0400
Re: solved Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 15:01 -0400
Re: solved richard <noreply@example.com> - 2014-06-13 15:44 -0400
Re: solved Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 16:09 -0400
Re: solved Tim Streater <timstreater@greenbee.net> - 2014-06-13 21:16 +0100
Re: solved Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 16:38 -0400
Re: solved richard <noreply@example.com> - 2014-06-13 18:29 -0400
Re: solved Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 19:43 -0400
Re: solved richard <noreply@example.com> - 2014-06-13 20:48 -0400
Re: solved Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 21:39 -0400
Re: solved Evan Platt <evan@theobvious.espphotography.com.invalid> - 2014-06-13 21:20 -0700
Re: solved Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-14 19:50 +0000
Re: solved richard <noreply@example.com> - 2014-06-13 18:23 -0400
Re: solved Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-14 20:01 +0000
Re: solved Denis McMahon <denismfmcmahon@gmail.com> - 2014-06-13 20:50 +0000
Re: function for preserving special characters? Richard Damon <Richard@Damon-Family.org> - 2014-06-13 20:45 -0400
Re: function for preserving special characters? Jerry Stuckle <jstucklex@attglobal.net> - 2014-06-13 20:51 -0400
Re: function for preserving special characters? Richard Damon <Richard@Damon-Family.org> - 2014-06-13 22:08 -0400
csiph-web