PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #4855

passing value lists into query placeholders

Details

Request #4855passing value lists into query placeholders
Submitted2005-07-19 08:20 UTC
Fromtjerk dot meesters at gmail dot com
Assigneddanielc
StatusWont fix
PackageDB
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-07-19 08:20 UTC] tjerk dot meesters at gmail dot com

Description:
------------
I miss the feature to pass a value list (in combination with the SQL keyword 'IN') into a query like so:

<?php

$list = array(1,4,6);
$res = $db->query('SELECT * FROM product WHERE product_id IN (?)',$list);

?>

[2005-07-21 03:10 UTC] tjerk dot meesters at gmail dot com

Is there an alternative though? I like the portability of using placeholders.