Re: Re: $_POST in MySQL query issue...
| From: | Eugene Lee | Date: | Sun, 19 Oct 2003 21:03:15 +0000 |
| Subject: | Re: Re: $_POST in MySQL query issue... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166681@lists.php.net to get a copy of this message | ||
On Sun, Oct 19, 2003 at 02:51:33PM -0400, Adam Reiswig wrote:
:
: A couple of days ago I placed a post regarding using the $_POST[]
: variable in an insert sql query. Both
:
: $sql="insert into $table set Name =
'".$_POST['elementName']."'";
: and
: $sql="insert into $table set Name = '{$_POST['elementName']}'";
:
: worked perfectly. Thanks to everyone for your help. My question now is
: regarding the curly brackets in the 2nd example. Can anyone describe
: why using the curly brackets works and/or how php processes them. I
: have read quite a bit about php and never come accross thier use in this
: way. Thanks again.
http://www.php.net/manual/en/language.types.string.php