Re: [OOP] Class to handle PEAR::DB
| From: | valerie17 at telkom dot net | Date: | Thu, 18 Nov 2004 21:41:55 +0000 |
| Subject: | Re: [OOP] Class to handle PEAR::DB | ||
| Groups: | php.general php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15658@lists.php.net to get a copy of this message | ||
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@gremlins.biz>
Date: Thu, 18 Nov 2004 19:06:56 +0800
Subject: Re: [PHP] [OOP] Class to handle PEAR::DB
On Thursday 18 November 2004 17:05, valerie17@telkom.net 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. "
*/