I have a file containing French words, and I encoded the file as "Latin-1" (uft-8 didn't work), loaded the file to a table in MySQL. I need to $_POST input ("name") from a web page and use the "name" to query from MySQL. My code is as follows:
$name = "d' évaluation perfomance académique";
$sql = "SELECT * FROM application WHERE `Description` = '".$name."'";
For normal "name", it can work. But can't work if the "name" containing (è, d', è).
Any suggestions?
Thanks!