PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Just downloaded a dump file from my database server provider, and tried running it on my own MYSQL server, howeer i realised some inserts failed because of qoutes.
What is the safe way to add strings to a database, regardless of the qoutes that may or may not appear in the string?
An scape character is for example a backslash in front of another character to make sure it's not implemented wrong i believe. Have a look at stripslashes() or quotemeta()