fetch-data-from-database-explanation
Fetch Data from the Database Explanation

Explanation

It is very Simple as it has a query and a function used to execute the query and the result is stored in a variable because we have to display it in the HTML table using the function mysqli_fetch_array.

it is a PHP function with only one parameter which is the query result.
As the result obtained by the query is an associated array which contains more associated arrays in it (you can see the full array by using PHP function like "var_dump(variable) or print_r(variable)  ).

So we need to use the while loop and for every iteration, we store the data in a variable row this is also an associated array.
then we use the echo function to print the values in the table combiner with the HTML.

Previous Lecture 
Next lecture