Re: [Phplib-users] DB putting results to strings
Brought to you by:
nhruby,
richardarcher
From: Michael C. <mdc...@mi...> - 2002-08-09 14:26:54
|
On Fri, Aug 09, 2002 at 07:06:41AM -0400, Matthew Leingang wrote: > Hi, > > You can use the metadata method to get the list of column names. > > Or you can access the Record member directly and use extract. > extract($db->Record) would work great except that there are numeric keys > in $db->Record. I'm pretty sure PHP can be told to ignore these. Actually, it's no big deal. You get some variables that are ${'0'}, ${'1'}, etc. Make sure to use: extract($db->Record, EXTR_OVERWRITE); When you do. Michael -- Michael Darrin Chaney mdc...@mi... http://www.michaelchaney.com/ |