![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Dan Schultz wrote: > $mdb2->getAll($sql); the equivalent would be $mdb2->queryAll($sql); > I can see that class MDB2 doesn’t have this method, is there anyway to > access it, does MDB2 extend DB somehow? Or will ihave to change every > ‘getAll’ call in my existing code if I want to use the MDB2 package? If you also intend to use placeholders, like you can in DB, you need to load the extended module and then you can also call getAll(): http://pear.php.net/manual/en/packag...tro-module.php More tipps can be found here: http://www.phpied.com/db-2-mdb2/ regards, Lukas | |||
|
| | #2 | ||
| Thanks for the info, so getAll no longer exists, so do I have to change all my calls to queryOne, queryRow, queryAll ? Dan Schultz 310.600.4938 dan@formula23.com www.formula23.com -----Original Message----- From: Lukas Kahwe Smith [mailto:smith@pooteeweet.org] Sent: Thursday, May 10, 2007 4:21 PM To: Dan Schultz Cc: pear-general@lists.php.net Subject: Re: MDB2 Dan Schultz wrote: > $mdb2->getAll($sql); the equivalent would be $mdb2->queryAll($sql); > I can see that class MDB2 doesn't have this method, is there anyway to > access it, does MDB2 extend DB somehow? Or will ihave to change every > 'getAll' call in my existing code if I want to use the MDB2 package? If you also intend to use placeholders, like you can in DB, you need to load the extended module and then you can also call getAll(): http://pear.php.net/manual/en/packag...tro-module.php More tipps can be found here: http://www.phpied.com/db-2-mdb2/ regards, Lukas | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: mdb2 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MDB2 | Dan Schultz | Pear | 0 | 05-20-2007 5:34 PM |
| MDB2 bug manager module | Bram Kuijper | Pear | 4 | 05-20-2007 5:34 PM |
| MDB2 - how to catch "MDB2 Error: constraint violation" error? | l Burnerheimerton | Pear | 1 | 05-20-2007 5:34 PM |
| [ANNOUNCEMENT] MDB2-2.4.1 (stable) Released. | PEAR Announce | Pear | 0 | 05-20-2007 5:34 PM |
| [PEAR] Possible serious memory leak in MDB2 | Lorenzo Alberton | Pear | 1 | 05-20-2007 5:34 PM |
| Featured Websites | ||||
|