![]() |
|
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 | ||
| Hello, I have been using the DB package up until now and now I want to install the MDB2 package and start using that. I have it installed and I can use most of the methods. I thought that MDB2 was just a combination of the DB package and the metabase php db ab layers. So I think I should be able to use the getAll method from the DB package, even though I am using MDB2 package. require_once 'MDB2.php'; $mdb2 =& MDB2::connect('pgsql://usr if (PEAR::isError($mdb2)) { die($mdb2->getMessage()); } $mdb2->getAll($sql); Doesn't work I get the error stating that getAll is an undefined function. What am I missing in this case? 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? Thanks for you help. Dan Schultz 310.600.4938 dan@formula23.com www.formula23.com | |||
|
| 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 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 |
| MDB2 ibase Reverse: strange case problem | Alessandro Pasotti | Pear | 3 | 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 | ||||
|