Re: query returned "Resource id #2"
| From: | grant | Date: | Fri, 17 Aug 2001 23:03:47 +0000 |
| Subject: | Re: query returned "Resource id #2" | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11489@lists.php.net to get a copy of this message | ||
This uses PostgreSQL, but the concepts are the same for MySQL.
On Fri, 17 Aug 2001, Alex wrote:
> Could you give me an example?
>
> Grant wrote:
>
> > That Resource ID #2 is the connection or result set. You need to use the
> > connection to do a query, which returns a result set, then use the result
> > set to do fetches. Those will return an array of the stuff you really
> > wanted.
> >
> > ______________________________________________________________________________
> >
> > Your mouse has moved.
> > You must restart Windows for your changes to take effect.
> >
> > #!/usr/bin/perl
> > print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>