How can i get every row of a mysql table and put it in a php array? Do i need a multidimensional array for this? The purpose of all this is to display some points on a google ma
You can do it without a loop. Just use the fetch_all command
$sql = 'SELECT someFieldName FROM yourTableName'; $result = $db->query($sql); $allRows = $result->fetch_all();