Re: New to PHP, and stuck
| From: | Ernest E Vogelsinger | Date: | Wed, 06 Nov 2002 14:16:32 +0000 |
| Subject: | Re: New to PHP, and stuck | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123006@lists.php.net to get a copy of this message | ||
At 14:34 06.11.2002, Markus Jäntti said:
--------------------[snip]--------------------
>$sql ="CREATE TABLE $_POST[table_name] ((";
--------------------[snip]--------------------
If you are including an array expression within a string, you should
enclose it in curly braces, like this:
$sql ="CREATE TABLE {$_POST[table_name]} ((";
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/