mysqli Reading data

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


Read the data that is collected. $result represents the result from the query.


  1. $result->mysqli_fetch_array(MYSQLI_BOTH)
  2. $result->mysqli_fetch_array(MYSQLI_NUM)


MYSQLI_BOTHtells the script to use the column names as indexes e.g. $data['username']
MYSQLI_NUMtells the script to use number indexes e.g. $data[1]

Got any mysqli Question?