Problems Inserting Single Quote Into Database
- Forums
- MYSQL
- Problems Inserting Single Quote Into Database
This Page Contains information about Problems Inserting Single Quote Into Database By Justin in category MYSQL with 1 Replies. [2301], Last Updated: Mon Jun 24, 2024
Justin
Sun Sep 27, 2009
1 Comments
347 Visits
for some reason, everytime i try to enter a string that contains this character:
'
it doesn't works
for example i have this:
$string = "This isn't working";
the database gives me an error, but when i remove the isn't part like this:
$string = "This is working";
what is the problem? do i need to get another dedicated server because the server you gave me is broken?
please advise.
$string = "This isn't working";
$string = mysql_real_escape_string($string);
OR
$string = mysql_real_escape_string("This isn't working");
it should work like if you use mysql_real_escape_string() function
Webune Support Team
https://www.webune.com/forums/problems-inserting-single-quote-into-database.html