Re: tableInfo()
| From: | Chris Anderson | Date: | Sat, 25 Oct 2003 19:15:46 +0000 |
| Subject: | Re: tableInfo() | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8580@lists.php.net to get a copy of this message | ||
Trying to use 'simplequery' instead, now get the following error:
Call to a member function on a non-object in {MyDirectory}/formatting.php on
line 19
Correct me if I'm wrong, simplequery appears to be returning a (postgres in
my case) result reference vs. a Pear DB object, so none of the Pear methods
are available on it...
"Andreas Otterstein" <webdesign@e-lite.at> wrote in message
news:3F9AC5F2.4080003@e-lite.at...
> Hi Chris,
>
> you can use tableinfo, if you take simplequery instead of query.
>
> Andy
>
>
>
> Chris Anderson wrote:
>
> >Has anyone had consistent luck using this function?
> >
> >It has been working extremely inconsistently on my application. The
problem
> >is fairly localized to this function, if I don't use, my PHP script
> >processes normally, if I do use it, my PHP script redirects to an unknown
> >page. (404-not found).
> >
> >If it is buggy, is there any other mechanism in Pear to get at the meta
data
> >on a result set (i.e. a list of fields at a minimum)
> >
> >TIA for any approaches, I'm trying to use it to model a resultset-to-HTML
> >function in my application for quick-and-dirty reporting, etc. I'll be
> >happy to share it when/if it is working reliably
> >
> >Chris Anderson
> >Real World IS
> >
> >
> >