#49789 [NEW]: I want to make a query like this "UPDATE class=? WHERE user IN (?)"
| From: | seniuk01 at yahoo dot com | Date: | Tue, 06 Oct 2009 14:52:49 +0000 |
| Subject: | #49789 [NEW]: I want to make a query like this "UPDATE class=? WHERE user IN (?)" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-143325@lists.php.net to get a copy of this message | ||
From: seniuk01 at yahoo dot com
Operating system: IRELEVANT
PHP version: 5.3.0
PHP Bug Type: PDO related
Bug description: I want to make a query like this "UPDATE class=? WHERE user IN (?)"
Description:
------------
I want to make a query like this "UPDATE class=? WHERE user IN (?)" $sth =
$DBH->prepare($query);
try
{
$sth->execute(array('class1',$an_array));
}
catch(PDOException $e)
{
die("PDO error: ".$e->getMessage()." (".__FILE__."
".__LINE__.")");
}
So I expect this to work .... but it didn't. :(
Reproduce code:
---------------
---
From manual page: book.pdo
---
--
Edit bug report at http://bugs.php.net/?id=49789&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49789&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49789&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49789&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49789&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49789&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49789&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49789&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49789&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49789&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49789&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49789&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49789&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49789&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49789&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49789&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49789&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49789&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49789&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49789&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49789&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49789&r=mysqlcfg