I have a mysql table called category Inside this table lets say i have several rows 0 to 7 and inside the table i have cat_id and cat_name. How would i be able to print out cat_name based on whichever row i want. For example i want to print row 6 or 4 would i put it like $row[6] or $row[4]
Basically i want to use . $_GET['rownumber'] to get the row number and then use it to print out the row. So would it work something like $row[$_GET['rownumber']] ? Im kind of confused just trying to learn mysql here.
I basically want to print the cat_name within that row that i choose in php
This is how to get the rows based on the row number:
However, Mysql has a built in function
ORDER BY LIMITto do this.