I have a mysql table with columns: Date, Jack, John, Amy.
I want to show the column names (only the names!) in an array using php.
So the result should be an array like this:
$array = array('Date', 'Jack', 'John', 'Amy');
So when I do echo $array[1]; for example, the output should be 'Jack'.
Any help would be very appreciated.