RE: [PEAR] problem using Pear's DB layer
| From: | luis | Date: | Wed, 02 Apr 2003 18:36:29 +0000 |
| Subject: | RE: [PEAR] problem using Pear's DB layer | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4602@lists.php.net to get a copy of this message | ||
Use:
if (DB::isError($db)) {
die ($dbTiki->getMessage());
}
To check what kind of error message you are receiving.
-----Original Message-----
From: Tim [mailto:tfletcher@netfactoriel.com]
Sent: Wednesday, April 02, 2003 3:26 PM
To: luis; 'Alan Richmond'; pear-general@lists.php.net
Subject: RE: [PEAR] problem using Pear's DB layer
hi,
i did this and it stops after the statment
$db = DB::connect($dsn);
or to put it differently, no print("foo"); is printed after that line.
but i checked the include path and it seems to include things fine!
i don't know if this has anything to do with it but, when i put html
code before the script
it prints it twice.
this is my first try at Pear, so i don't know if there is anything wrong
with my setup, but i have lots of sites all using PHP and
Apache.
Thanks for your help
Tim
> -----Message d'origine-----
> De : luis [mailto:luis@fuegolabs.com]
> Envoyé : mercredi 2 avril 2003 20:16
> À : tfletcher@netfactoriel.com; 'Alan Richmond';
> pear-general@lists.php.net
> Objet : RE: [PEAR] problem using Pear's DB layer
>
>
> Add some print("foo"); statements to know where the script is dying my
> guess
> Is that Php can't find the DB.php class
>
> -----Original Message-----
> From: Tim [mailto:tfletcher@netfactoriel.com]
> Sent: Wednesday, April 02, 2003 1:08 PM
> To: Alan Richmond; pear-general@lists.php.net
> Subject: RE: [PEAR] problem using Pear's DB layer
>
> yep, sorry
> i was playing around with the script to get it to work!
>
> it should look like this:
> $dsn = "mysql://$user:$pass@$host/$db_name";
>
> but still the same problem :(
>
> Thanks
> t.
>
> > -----Message d'origine-----
> > De : Alan Richmond [mailto:alan@aardwolfweb.com]
> > Envoyé : mercredi 2 avril 2003 18:03
> > À : tfletcher@netfactoriel.com; pear-general@lists.php.net
> > Objet : RE: [PEAR] problem using Pear's DB layer
> >
> >
> > ] $db_name = 'spip_marcou';
> > ] // Data Source Name: This is the universal connection string
> > ] $dsn = "mysql://$user:$pass@$host";
> > ] print($dsn);
> >
> >
> > Tim,
> > You're not passing in the $db_name.
> >
> > -Alan
> >
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>