Resource id #s

This is a discussion on Resource id #s within the PHP Language forums, part of the PHP Programming Forums category; Building a simple PHP/MySQL database interface. All SELECT queries return: "Resource id #2" What is this Resource ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
Ross
 
Posts: n/a
Default Resource id #s

Building a simple PHP/MySQL database interface. All SELECT queries return:
"Resource id #2"

What is this Resource id? Is there a list of them described somewhere?
Looked all over php.net

Many thanks!
-Ross


Reply With Quote
  #2 (permalink)  
Old 08-12-2003
Andy Hassall
 
Posts: n/a
Default Re: Resource id #s

On Tue, 12 Aug 2003 20:13:55 GMT, "Ross" <info@dakindesign.com> wrote:

>Building a simple PHP/MySQL database interface. All SELECT queries return:
>"Resource id #2"
>
>What is this Resource id? Is there a list of them described somewhere?
>Looked all over php.net


Look harder. Particularly at:

http://php.net/mysql_query
http://php.net/mysql_fetch_array

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Reply With Quote
  #3 (permalink)  
Old 08-12-2003
Jeffrey Silverman
 
Posts: n/a
Default Re: Resource id #s

On Tue, 12 Aug 2003 20:13:55 +0000, Ross wrote:

> Building a simple PHP/MySQL database interface. All SELECT queries
> return: "Resource id #2"
>
> What is this Resource id? Is there a list of them described somewhere?
> Looked all over php.net
>
> Many thanks!
> -Ross


This ought to be in a FAQ or something...!

Simple answer: Read the Manual!

More detailed answer:
Anyways, "Resource id #2" is the text-description of the valid mysql
resource. Looks to me like you need to do some reading on this one. Try
reading this:

http://us2.php.net/manual/en/ref.mysql.php

Scroll down the page to "Example 1. MySQL extension overview example".
Copy and paste code. Change names as necessary.

later...

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

Reply With Quote
  #4 (permalink)  
Old 08-12-2003
Ross
 
Posts: n/a
Default Re: Resource id #s

Sorry for the ignorance! I had the concept backwards, I thought the
Reference # was in reference to an error (an assuption that should speak for
itself).

Got it all strait and working now, thanks again.
-Ross


> This ought to be in a FAQ or something...!
>
> Simple answer: Read the Manual!
>
> More detailed answer:
> Anyways, "Resource id #2" is the text-description of the valid mysql
> resource. Looks to me like you need to do some reading on this one. Try
> reading this:
>
> http://us2.php.net/manual/en/ref.mysql.php
>
> Scroll down the page to "Example 1. MySQL extension overview example".
> Copy and paste code. Change names as necessary.
>
> later...
>
> --
> Jeffrey D. Silverman | jeffrey AT jhu DOT edu
> Johns Hopkins University | Baltimore, MD
> Website | http://www.wse.jhu.edu/newtnotes/
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0