I have some data in my database that has single quotes in it.
ex.) Forgaty's Cove
I'm going to uses a selsct statement te retrieve this info and place it in a variable.
$song_title = $myrow["music_album"];
Will the single quote have any effect with this code? When I try it by just typin in the song title I have to backslash the single quote.
How do I go about fixing this if I have to?
This is the code that come to my mind: $song_title=strtr($song_title, "'", "\'");
Any help will be greatly appreciated.