Re: AUTH: problems with 'db_fields' in options (MORE INFORMOATION)

From: Date: Mon, 16 Oct 2006 12:12:32 +0000
Subject: Re: AUTH: problems with 'db_fields' in options (MORE INFORMOATION)
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25470@lists.php.net to get a copy of this message
--- Adam Ashley <php@adamashley.name> wrote: > On Sun, 15 Oct 2006 17:21:22 -0700 (PDT), l > Burnerheimerton > <lburnerheimerton@yahoo.com> wrote: > > > I tried: > > > > $opts = array('table' => 'user_table', > 'usernamecol' > > => 'uName','dsn' => > > 'mysql://uname:password@localhost/dbname', > > 'db_fields' => "*"); > > > > And that worked. But formatting the db_fields > with > > single quotes and enumerating selected fields does > not > > work. > > > > Why and how do I fix? > > 'db_fields' is supposed to be an array of field > names > > $opts = array( > 'table' => 'user_table', > 'usernamecol' => 'uName', > 'dsn' => > 'mysql://uname:password@localhost/dbname', > 'db_fields' => array( > 'id', > 'fName', > 'lName', > 'mName' > ), > ); > > Adam Ashley Adam - thanks. I must have used a long previous version. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.pear.general (#25470) next »