RE: [PHP-DB] Using apostrophe's within a text field

2007-03-28 Thread Bastien Koert
use mysql_real_escape_string($_POST['field'] IN the query use addslashes use htmlspecialentities use str_replace to switch it to an ascii equivalent hth bastien From: "Stephen Smith" <[EMAIL PROTECTED]> To: Subject: [PHP-DB] Using apostrophe's within a text field Date: Wed, 28 Mar 2007 00:1

Re: [PHP-DB] Using apostrophe's within a text field

2007-03-27 Thread Ron Croonenberg
There is that mysql function that is meant for prevention of sql injection when a single quote or so is entered sql starts acting up. because the sql syntax is not correct anymore. then your sql functions start acting up and you get to see all those informative msgs Turning a ' into a '' or a

Re: [PHP-DB] Using apostrophe's within a text field

2007-03-27 Thread Chris
Stephen Smith wrote: OK guys, here is my delima, which is probably very easy to solve, but I can't seem to find it. I am trying to get form fields to accept apostrophes within the input and stop crashing on me. I'm writing forms into a mysql database and everything works great unless the user