Re: Re: $_POST in MySQL query issue...

From: Date: Fri, 17 Oct 2003 13:42:26 +0000
Subject: Re: Re: $_POST in MySQL query issue...
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-31097@lists.php.net to get a copy of this message
Since this was posted in php.general and php.db, I only ended up correcting myself to the orginal poster and to php.general. $table= 'elements'; $Name = mysql_escape_string($_POST['elementName']); $sql = "INSERT INTO $table SET Name= '$Name'"; >> waste of variable space, and makes what you are doing less readable I disagree, but that is ok, that is allowed =) -- Jon Kriek http://phpfreaks.com

« previous php.db (#31097) next »