Re: What are the curly brackets around variables in SQL statements for?
| From: | Daniel Brown | Date: | Wed, 21 Jul 2010 19:07:12 +0000 |
| Subject: | Re: What are the curly brackets around variables in SQL statements for? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307074@lists.php.net to get a copy of this message | ||
On Wed, Jul 21, 2010 at 14:59, Dotan Cohen <dotancohen@gmail.com> wrote:
> Take for example:
> INSERT INTO table ( field ) VALUES ('{$variable}' )
>
> Why the curly brackets? Where in the fine manual is this addressed? I
> started from [1] but did not find the relevant info.
>
> [1] http://il2.php.net/manual/en/book.mysql.php
That's just basic variable parsing on the PHP side, it's not
MySQL-specific. Check out the "variable parsing" heading at
http://php.net/string .
--
</Daniel P. Brown>
UNADVERTISED DEDICATED SERVER SPECIALS
SAME-DAY SETUP
Just ask me what we're offering today!
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/