From: sayeeram82 at yahoo dot com Operating system: windows xp PHP version: 5.0.2 PHP Bug Type: Unknown/Other Function Bug description: about php pdo
Description: ------------ hello, iam developing certain programs with php(version 5.0.2) which actually need interface with my database(oracle 8.1.5) which i does with PDO.Iam using wamp5 php5 apache1.3.31 version 1.3 as my webserver.Here i need to insert and get some value from database through program. My current problem is to insert atleast 2 or more rows at a time with bingvariables but iam getting some bug so please give some idea for it or solve my error please. Reproduce code: --------------- $stmt = $dbh->prepare("insert into test (name, value) values (:name, :value)"); $stmt->bindParam(':name', $name, PDO_PARAM_STR, 64); $stmt->bindParam(':value', $value, PDO_PARAM_STR, 64); $name = 'Foo'; $value = 'Bar'; $stmt->execute() or die("no insert"); // and another $name = 'Fu'; $value = 'Ba'; $stmt->execute() or die("no insert"); $stmt = null; Expected result: ---------------- i Expect both the foo and fu values to be inserted into my database table test. Actual result: -------------- but actually it is not inserting anything and i get a microsoft dialogue report sending error message relating a problem with apache. -- Edit bug report at http://bugs.php.net/?id=30643&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30643&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30643&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30643&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30643&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30643&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30643&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30643&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30643&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30643&r=support Expected behavior: http://bugs.php.net/fix.php?id=30643&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30643&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30643&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30643&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30643&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30643&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30643&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30643&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30643&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30643&r=mysqlcfg