normally to get my items from mysql to an array i use this code
while($row=mysqli_fetch_array($result))
{
$array[] = array('id' => $row['id'] ect...)
}
anyway I am using some OOP in my code so now I don't know what the row names from mysql are named to use in the while loop so how do I get the row names and then put them in the while loop array.