|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30643 about php pdo
Submitted: 2004-11-01 05:26 UTC Modified: 2004-11-10 01:00 UTC
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: sayeeram82 at yahoo dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.0.2 OS: windows xp
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-11-01 05:26 UTC] sayeeram82 at yahoo dot com
    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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-01 07:56 UTC]
Please try using this CVS snapshot:
For Windows:
 [2004-11-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 12 15:01:30 2024 UTC