Closed michaelward82 closed 11 years ago
No, database entities are escaped differently to values. You are trying to bind a value as a table name (entity) so it is being incorrectly escaped with apostrophes. The short of it; you cannot bind table names with PDO, which is what you're attempting to do with the code sample you have supplied.
Thanks for clarifying!
If this code works:
Then should the following work?
At the moment I get an error: