I'm having a small problem with my localhost on Ubuntu to accept data posted with apostrophes from a PHP file into the MySQL database.
Example:
It's your birthday!
Will not be accepted by my localhost database and it won't accept anything coming with it either.
Example:
Its your birthday!
Will be accepted by my localhost database and everything else coming with it as long as there's no apostrophes posted.
How can I get my local machine to act like my server online that accepts apostrophes with the data posted to the database? This will be more ensuring to me that my code works while developing.
I want to make my localhost like my servers that accepts the data without using mysql_real_escape_string().