$data = $result->mysqli_fetch_array(MYSQLI_NUM);
$data = $result->mysqli_fetch_array(MYSQLI_BOTH);
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] |