I know there must an easy and efficient way to do this.
I have an array like this:
$fields = array( "EVENT_ID" => "Event Id" ,
"EVENT_NAME" => "Name",
"EVENT_CLASSIFICATION" => "Classification",
"DESCRIPTION" => "Description",
"START_TIME" => "Start Time",
"END_TIME" => "End Time"
);
I would like to convert this as this query:
Select
"EVENT_ID" as "Event ID",
"EVENT_NAME" as "Name",
...
from
...
Don't want to put this in Loop. PHP has a lot array handling functions and this must be easy. I am new to php.
Any ideas?