I am returning a query from a mysql DB and printing it directly to the screen in an HTML table using PHP. the problem is the field name were stored in shortened form in the mysql db like this:
station_name | viewership_shares | age_gr0_shares | age_gr1_shares | age_gr3_shares
and that isn't too pretty for the end user to be seeing.
Is there anyway to rename the field in a proper way? I can't rename them all manually using an 'as' because it is a large table , with about 50 different attributes and i also want spaces in the heading names.
I would want something like this instead
Pretty name for station_name | Pretty name for viewership_shares | Pretty name for age_gr0_shares | Pretty name for age_gr1_shares | Pretty name for age_gr3_shares