Re: AUTH: problems with 'db_fields' in options (MORE INFORMOATION)
| From: | Adam Ashley | Date: | Mon, 16 Oct 2006 05:51:13 +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-25463@lists.php.net to get a copy of this message | ||
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