I've inherited a MySQL database that has field names like the below:
'Profile is Subscribed ?'
& 'Private ?'
These can't be changed as the table is used by different systems within the business.
But, I want to use PHP PDO to update these records.
For example: UPDATE Guests SET `Profile is Subscribed ?` = :subscribed, `Private ?` = :private WHERE intID = 123;
But, when using placeholder's I'm getting the "mixed name and positional parameters" error message.
Is there a work around for this (that doesn't involve renaming the fields)? Can I escape the question mark (I've tried "/?", but no difference)?
Thanks