Re: db query not working as expected

From: Date: Wed, 07 Mar 2007 15:08:23 +0000
Subject: Re: db query not working as expected
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-249985@lists.php.net to get a copy of this message
Ed Curtis wrote:
                mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES                         ('$magazine_path[2]')");
Replace that with this... mysql_query ("INSERT INTO tmphitsmag (magazine) VALUES
             ('".mysql_real_escape_string($magazine_path[2])."')");
-Stut

« previous php.general (#249985) next »