Re: going blind for looking...need eyes
| From: | Daniel Brown | Date: | Fri, 06 Feb 2009 18:09:07 +0000 |
| Subject: | Re: going blind for looking...need eyes | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287836@lists.php.net to get a copy of this message | ||
On Fri, Feb 6, 2009 at 13:03, Jochem Maas <jochem@iamjochem.com> wrote:
>
> there are a zillion variations on this theme (e.g. using HEREDOC syntax and/or putting each
> field & value
That's right, when reading the OP's email, there was meant to be a
#4 as well.
4.) Use HEREDOC syntax:
<?php
$sql =<<<SQL
INSERT INTO table_name(column_a,column_b,column_c)
VALUES('{$value_a}','{$value_b}','{$value_c}')
SQL;
?>
--
</Daniel P. Brown>
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!