Re: HTTP_Session and DB: "no database selected"
| From: | Torsten Roehr | Date: | Fri, 07 Apr 2006 17:59:54 +0000 |
| Subject: | Re: HTTP_Session and DB: "no database selected" | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23577@lists.php.net to get a copy of this message | ||
"H Glenn Hatfield" <glennh@inetz.com> schrieb im Newsbeitrag
news:CF.56.19347.73541344@pb1.pair.com...
> I'm trying to use HTTP_Session with the DB container.
>
> Here is the code that I am using. (user/pass stripped out)
>
> <?
> require_once 'DB.php';
> require_once 'HTTP/Session.php';
>
> HTTP_Session::setContainer('DB', 'mysqli://user:pass@localhost/test');
> HTTP_Session::start();
> HTTP_Session::set('test_entry','it worked');
> ?>
>
> This is the error I get:
> DB Error: no database selected
See here: http://pear.php.net/bugs/bug.php?id=6408
(Second to last comment)
Best regards, Torsten Roehr