object(DBku)#1 (6) { ["type"]=> string(5) "mysql" ["user"]=> string(4) "root" ["pass"]=> string(0) "" ["host"]=> string(9) "localhost" ["db"]=> string(7) "valerie" ["dbhandler"]=> NULL } Standard Message: DB Error: no database selected Standard Code: -14 DBMS/User Message: SELECT * FROM country [nativecode=1046 ** No Database Selected] DBMS/Debug Message: SELECT * FROM country [nativecode=1046 ** No Database Selected] of course it would return the same otherwise it'll have no <BR> via web browser . And yes, my previous projects worked very well and I do have MySql support for my PHP 5.0.1. Isn't it strange ? Or it's just the logic of my OOP code go wrong ? Valérie Delon étudiante -- On a besoin d'apprendre beacoup plus Quelqu'un croit c'est trop Mais j'crois que ce n'est pas assez From: Jason Wong <php-general@xxxxxxxxxxxx> Date: Thu, 18 Nov 2004 19:06:56 +0800 Subject: Re: [OOP] Class to handle PEAR::DB On Thursday 18 November 2004 17:05, valerie17@xxxxxxxxxx wrote: > my problem is : everytime I execute this file in CLI mode I always got this [...] > Standard Message: DB Error: no database selected > Standard Code: -14 > DBMS/User Message: SELECT * FROM country [nativecode=1046 ** No Database > Selected] > DBMS/Debug Message: SELECT * FROM country [nativecode=1046 ** No Database > Selected] > > How come the message said I didn't select database ?? Does this work when executed via a webserver? If so, have you checked that you have MySQL support compiled into your CLI php? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "For a moment, nothing happened. Then, after a second or so, nothing continued to happen. " */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php