[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] [PEAR-BUG] Bug #8250 [NEW]: Wrong code Example 33-2 package.database.mdb2.intro-query.php
From:       "andres at pruna dot com dot ar" <pear-doc () lists ! php ! net>
Date:       2006-07-19 16:06:11
Message-ID: bug-8250 () pear ! php ! net
[Download RAW message or body]

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,
&#65533;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
-- 

-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic