Re: confused big time
| From: | Richard Davey | Date: | Wed, 07 Apr 2004 00:23:02 +0000 |
| Subject: | Re: confused big time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182573@lists.php.net to get a copy of this message | ||
Hello Andy,
Wednesday, April 7, 2004, 1:18:06 AM, you wrote:
AB> um...im not doing selects im doing inserts with variable names... i
AB> understand the idea with select but thats not the deal....its an insert...
He was showing you a neatly formatted query, the example applies to
inserts too:
$sql = "
INSERT INTO
tablename
(
field1,
field2,
field3
)
VALUES
(
'$blah',
$here',
'$etc'
)
";
There you have a visually instant way of telling where the missing '
is.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html