Why is PDO better for escaping MySQL queries/querystrings than mysql_real_escape_string?
As the current answers go into details while your question is more aimed at a general overview, I’ll give it a try: The PDO classes aim to encapsulate all the functionality needed to interact with a database. They do this by defining ‘methods’ (OO parlor for functions) and ‘properties’ (OO parlor for variables). You’d use … Read more