Share
A Row of Data
The mysql_fetch_array function takes a MySQL query resource as an argument ($result) and returns the first row of data returned by the mysql_query. Our table example basically looks like the table below.
example MySQL Table:
| Name | Age |
| Putu Sanjaya | 20 |
| Made Sanjaya | 18 |
| Haru Sanjaya | 22 |
The first row of data in this table is "Putu Sanjaya" and "20". When we fetch an array from our MySQL Resource $result it should have Putu's name and age in it.