Could someone offer me a solution to this problem ??
MySQL offer the facility to use chars such as & - + etc in column names, but when parsed as part of a query string php does not like them.
e.g.
"SELECT this-name&+2 FROM table name";
Will produce an error.
I know that I could use back ticks, but is there any other way I could manipulate the string to parse the special characters in the column names?
The reason I need to do this is because my column names are dynamically generated and putting back quotes around each column name will be alot of hasstle and slow down my code:
Thanks in advance
Ryan