Bug #8250 [NEW]: Wrong code Example 33-2 package.database.mdb2.intro-query.php
| From: | andres at pruna dot com dot ar | Date: | Wed, 19 Jul 2006 16:06:11 +0000 |
| Subject: | Bug #8250 [NEW]: Wrong code Example 33-2 package.database.mdb2.intro-query.php | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8156@lists.php.net to get a copy of this message | ||
From: andres at pruna dot com dot ar
Operating system: any
Package version:
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: Wrong code Example 33-2 package.database.mdb2.intro-query.php
Description:
------------
In code:
$sql = "INSERT INTO clients (name, address) VALUES ($name,
�address)";
$data = 53;
$affected =& $mdb2->exec($sql);
You are not passing $data to complete query statement.
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=8250&edit=1
--