Forum Moderators: coopster
DATE_FORMAT('dep_date', %D %b %Y) AS dep_date_formatted,
DATE_FORMAT('dep_time', %D %b %Y) AS dep_time_formatted,
dep_port,
DATE_FORMAT('ret_date', %D %b %Y) AS ret_date_formatted,
DATE_FORMAT('ret_time', %D %b %Y) AS ret_time_formatted,
DATE_FORMAT(`dep_date`, %D %b %Y) AS dep_date_formatted,
DATE_FORMAT(`dep_time`, %D %b %Y) AS dep_time_formatted,
dep_port,
DATE_FORMAT(`ret_date`, %D %b %Y) AS ret_date_formatted,
DATE_FORMAT(`ret_time`, %D %b %Y) AS ret_time_formatted,
Where they are definately required is if the field name conflicts with a mySQL internal command, data type, or other reserved word, and if you don't know those, it's a good case for backticking all field and table names.
Yes. Please ignore my comment about php5