I'm trying to work with data returned from mySQL db. I've done some tutorials and have checked out php.net and the like, and I still don't understand this, and was hoping someone could help. Maybe explain it, or show me someplace that can.
When certain types of quries (fetch array, etc.) are performed, the function returns is a resource... so if you echo it back, it says resource id#3 or something.
What does this mean? and how do you work with that? How is it useful?
The other functions I'm aware of (fetch field, fetch object etc) return a field as an object. And, unfortunately, I don't totally understand the ins and outs of this either. How is working with a returned object different... do I have to make the object and then pull the value from the db?
I'm sure this is all really obvious, but something just isn't clicking for me, and I need help.
When certain types of quries (fetch array, etc.) are performed, the function returns is a resource... so if you echo it back, it says resource id#3 or something.
What does this mean? and how do you work with that? How is it useful?
The other functions I'm aware of (fetch field, fetch object etc) return a field as an object. And, unfortunately, I don't totally understand the ins and outs of this either. How is working with a returned object different... do I have to make the object and then pull the value from the db?
I'm sure this is all really obvious, but something just isn't clicking for me, and I need help.
