Hello, I would like to ask about mysql_result function.
I have to supply 3 parameters inside. First a place where to look (usually a query where you grab data). The second one I dont understand. And the third one is the field from database, am I correct?
You should not use any of the mysql_* functions.
They are long outdated and no longer recommended for use - use mysqli or PDO instead.
Read more about choosing an API for MySQL.
The second parameter of mysql_query() is the row number, starting with 0 (the first row).
It can return all rows if called repeatedly, sure. But if you're calling it more than once, then you should probably just be using one of the fetch_*() functions inside a while() loop instead.
Bookmarks