Re: DataObject - DB Error : not found
| From: | Alan Knowles | Date: | Wed, 17 Jul 2002 10:38:44 +0000 |
| Subject: | Re: DataObject - DB Error : not found | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-1905@lists.php.net to get a copy of this message | ||
Have you loaded the configuration:
http://pear.php.net/manual/en/packages.database.db-dataobject.introduction.php
| require_once('PEAR.php');
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$config = parse_ini_file('example.ini',TRUE);
$options = $config['DB_DataObject'];
// use one of the extended classes.
require_once('DataObjects/Person.php');
I guess the other examples should illustrate this somehow
you can always turn on debugging to get more details about what is going on
DB_DataObject::debugLevel(5);
regards
alan
|
William wrote:
Hi, I follow the manual on the pear.php.net and runs these <?php require_once('Person.php'); $person = new DataObjects_Person; $person->get(1); print_r($person); ?> I only have 'DB Error : not found' printed on the paper. What's the meaning of it? I am sure the table and record are exists there and I made the DataObject Classes by Auto Builder. Thanks in advance! Cheers, William