Re: apostrophes everywhere

From: Date: Sat, 18 Feb 2006 23:27:10 +0000
Subject: Re: apostrophes everywhere
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-41280@lists.php.net to get a copy of this message
Andrew Darrow wrote:
Everything get's run except for the INSERT INTO if there is an apostrophe in the value $blog. If I replace the apostrophe with ' it works fine. On my server I'm running PHP 4.4 and mySQL 4.1.16. I design there and publish elsewere. On my server everything works fine all the time, but on the production server I'm running PHP 4.3.11 and MySQL 4.1.12 that's where i'm having problems with the apostrophe.
RTFM: http://php.net/mysql_real_escape_string and http://php.net/magic_quotes -Stut

« previous php.db (#41280) next »