Q: Need for contributing DB-Code
| From: | Thorsten Suckow-Homberg | Date: | Thu, 31 Jul 2003 21:11:36 +0000 |
| Subject: | Q: Need for contributing DB-Code | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-19101@lists.php.net to get a copy of this message | ||
Dear Pear-Dev's,
right now I am working on a method that will work like the known facilities
autoPrepare() and autoExecute() on Select-Statements.
<?php
(...) // $dbh is an DB object
$table_fields = array('id', 'name', 'country');
$table_name = 'user';
$sth = $dbh->autoPrepare($table_name, $table_fields, DB_AUTOQUERY_SELECT);
//OR: $sth = $dbh->autoPrepare($table_name, $table_fields,
DB_AUTOQUERY_SELECT, 'id = 1');
$aUsers=$dbh->execute($sth);
?>
I was wondering why I couldn't find any of this in the current version of
the DB-Package.
As soon as I get positive feedback on this I will contact the developer of
the DB-Package and depending on their reactions contribute the code.
Best regards
Thorsten Suckow-Homberg
--
:: siteartwork.de
- php, jsp, mysql, java, interbase -
Thorsten Suckow-Homberg
Jakobstraße 214-216
52064 Aachen
Tel.: 0241 - 40 11 77 6
Mobil: 0173 - 720 18 18