When I run the following query in phpmyadmin:
SELECT firstName, lastName, credits FROM volunteers ORDER BY credits, firstName ASC
I get 9 rows as the result.
But when I run the following code in php, the $storing_data variable stores the array value of only one row.
$query_for_credits_table=mysqli_query($conn, "SELECT firstName, lastName, credits FROM volunteers ORDER BY credits, firstName ASC;");
$storing_data=mysqli_fetch_assoc($query_for_credits_table);
What will I have to do to store the complete information in the variable??