There is a cycle that writes the value of variables in the database, sometimes there is a quotation mark in the content of the variable and an error naturally occurs .... How to solve this problem? Example:
$id = 1; $person_lastname = "D'Arcy"; $result2 = "INSERT INTO shows (id,lastname) VALUES ('$id','$person_lastname')"; mysql_query($result2)or die(mysql_error());