Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Resource id# 1080

Status
Not open for further replies.

dagoat10

Programmer
Jun 3, 2010
74
US
I am not sure what this error means, i have searched the internet for the answer to what i was getting back from my program. Resource id# 1080. I have no idea what that means and the 2 things i use are mysql_num_rows() and mysql_query but i have no idea which one is reporting the error. Has anyone got an answer for me?
 
Hi

dagoat10 said:
the 2 things i use are mysql_num_rows() and mysql_query
How ?

If you suspect that is a bug in your code and you want us to debug it, please show your code.

In meantime I would say that is not an error message and you are just trying to use a resource directly instead of passing it forward to a function able to handle it.

Feherke.
 
i suspect you are trying to do
Code:
echo mysql_query('some query').

mysql_query just returns a resource handle. to access the rows within the query you need to use one of the mysql_fetch_* functions. Read up on these in the php manual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top