[horde] Re: using DB function

Craig White craigwhite at azapple.com
Sun Feb 27 05:24:37 PST 2005


On Sun, 2005-02-27 at 13:48 +0100, Jan Schneider wrote:
> Zitat von Craig White <craigwhite at azapple.com>:
> 
> > require_once 'DB.php';
> >
> > $_db = &DB::connect($conf['sql'], true);
> >
> > $query = sprintf('SELECT pref_value FROM horde_prefs WHERE pref_uid =
> > "Administrator" and pref_scope = "horde" and
> > pref_name="category_colors"');
> >
> > $result = $_db->query($query);
> >
> > $values = $this->$result;
> >
> > var_dump($result);
> > ---
> > and it results in connection error when I know that the $conf['sql']
> > array is good. The top of the output is listed below.
> 
> And where is this connection error?
----
sorry - I solved that - figured out that DB stuff was pear module,
looked up the info at pear.php.net and got it working - the result was
the preferences thing that I got working last night...which I have had
more thoughts about but thought I would wait to get initial reaction
before I keep going down the path.

Craig





More information about the horde mailing list