Re: Re: [PHP] Inserting variables (Saga Continues)
| From: | Kamil Nowicki | Date: | Tue, 09 Oct 2001 17:18:24 +0000 |
| Subject: | Re: Re: [PHP] Inserting variables (Saga Continues) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70520@lists.php.net to get a copy of this message | ||
My mistake:
> 3. Build PHP syntax which is able to build $querry:
> $querry_builder = '<? $querry = "INSERT INTO mytable VALUES (\'$q1\',
\'$q2\', ... )"; ?>';
should be:
> 3. Build PHP syntax which is able to build $querry:
> $querry_builder = '$querry = "INSERT INTO mytable VALUES (\'$q1\',
\'$q2\', ... )";';
cause eval() allready takes strings as PHP, so they do not have to be
'<?' and '?>' escaped.
K'H'N