Re: Re: Stuck in apostrophe hell
| From: | Chris | Date: | Tue, 03 Aug 2010 22:44:44 +0000 |
| Subject: | Re: Re: Stuck in apostrophe hell | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47287@lists.php.net to get a copy of this message | ||
On 03/08/10 23:04, Paul_S_Johnson@mnb.uscourts.gov wrote:
Yes, I may have mixed up the input and output from different iterations of running it. Let me try posting this again although it may not be an issue. Once again if I enter two sequential apostrophes in the name (O''Brien) the INSERT passes right through to MySQL without an error. THE INPUT: $sql_insert_registration = sprintf("INSERT INTO Registrations (^^^^^^ needs a mysql_real_escape_string or validation to make sure it's an integerClass_ID, prid, Registrant, Company, Phone, Email) VALUES ($_POST[Class_ID],
^^^^^^ needs a mysql_real_escape_string or validation to make sure it's an integer$_POST[prid],
^^^^^^ has a mysql_real_escape_string, but it's the only one.'%s',".
Without knowing what this function does, it's hard to say what this needs.parseNull($_POST['Company']).",
^^^^^^ needs a mysql_real_escape_string'$_POST[Phone]',
^^^^^^ needs a mysql_real_escape_string'$_POST[Email]'
)", mysql_real_escape_string($_POST['Registrant']));This has already all been pointed out previously. -- Postgresql & php tutorials http://www.designmagick.com/