I'm guessing that there is a simple explanation for this but I can find it anywhere. Please know that this is not a security issue as I only have this form on the web when I am adding music to my DJ database. When I finish, I take the form down. I just need to get around the issue of apostrophe in either the Artist name or Song Title name. This is the code I have:
$cleana= addslashes($artist);
$cleant= addslashes($title);
$artist=$cleana;
$title=$cleant;
My problem is that it adds 3 \'s to the string and when it writes to the database there is a \ in the entry. These are the only two fields that could possibly have an ' in them.
Thanks in advance.