php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57174 Unable to use placeholders (pdo_informix)
Submitted: 2006-08-08 15:27 UTC Modified: 2006-08-08 15:33 UTC
From: ian_mcmurray at utb dot uscourts dot gov Assigned:
Status: Closed Package: PDO (PECL)
PHP Version: 5.1.4 OS: Fedora Core 5 - Linux
Private report: No CVE-ID: None
 [2006-08-08 15:27 UTC] ian_mcmurray at utb dot uscourts dot gov
Description:
------------
Using PDO_informix (v1.0.0)

No data is returned and it want's to save the output as a file rather than show the output in the browser.

Removing the placeholder code and defining the record id in the SQL shows the record in the browser just fine.

Reproduce code:
---------------
$stmt = $db->prepare("select * from case where cs_caseid = :caseid");

if ($stmt->execute(array(':caseid' => '258579')) ) {
  while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    print_r($row);
  }
}


Expected result:
----------------
Return the specified record

Actual result:
--------------
Wants to save the php output as a file rather than display in the browser. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-08 15:33 UTC] ian_mcmurray at utb dot uscourts dot gov
I downloaded the alpha PDO_INFORMIX (v1.0.1) and this has fixed the placeholder problem which I experienced.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 05:01:31 2024 UTC