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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clarification of mysql_query() Result

Status
Not open for further replies.

Michael42

Programmer
Joined
Oct 8, 2001
Messages
1,454
Location
US
Hello,

When you use a command as $result=mysql_query($query); how could you accurately describe what is being returned ($result)? Exactly what does $result contain?

My guess is it is an array of values from the query. The manuals I have read through do not clearly spell this out.

Thanks for you feedback,

Michael42
 
It contains a number. This number is used by the libraries to identify which result set you want to manipulate/fetch data from.

//Daniel
 
The technical term for it is "result identifier".
It is most like to a "handle", like a file handle, and is used to access the result set with other mysql_ commands.
Thinking of it as a handle makes sense as it provides an access channel to an internal resource.
 
Cool - thanks for the explanation all. It is very helpful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top