I am doing the following INSERT
:
$result = mysql_query("INSERT INTO tbl_livro VALUES (NULL, '$titulo', '$autor_livro')");
What happens is that there are authors who have names with special characters, for example: O'Reilly Media, Inc.
What happens is that '
conflicts with insertion.
Is there any way to ignore the special characters that are inside the $autor_livro
variable? The goal is to insert with special characters.
Note: I know I should use mysqli
or PDO
but in this example it has to be mysql
.