real escape string and PDO

gonorreias

New Member
I'm using PDO after migrating away from the mysql library. What do I use in place of the old real_escape_string function?I need to escape single quotes so they will go into my database and I think there may be a better way to handle this without add(ing)slashes to all my strings. Can someone tell me what I should be using?
 
Back
Top