By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,653 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

Resource id #s

P: n/a
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
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Tue, 12 Aug 2003 20:13:55 GMT, "Ross" <in**@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 (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #2

P: n/a
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/

Jul 16 '05 #3

P: n/a
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/

Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.