Read the data that is collected. $result represents the result from the query.
| Parameter | Description |
|---|---|
| MYSQLI_BOTH | tells the script to use the column names as indexes e.g. $data['username'] |
| MYSQLI_NUM | tells the script to use number indexes e.g. $data[1] |