I need to build a PHP class which allows me to retrieve the names of all columns of a certain MySQL Database.
Suppose I had the following strucutre:
| ID | Name | Surname | Age | Sex |
My script should provide an array as:
0 => ID
1 => Name
2 => Surname
3 => Age
4 => Sex
Ideas? :)