I'm having a little problem where if on the form I type only a quotation mark 'it does not add to the database. Could someone tell me why and how could I fix this?
OBS¹: just with a quotation mark, if I close it with another quotation mark or place other type of symbol sends.
NOTE: no type of error appears, it performs the procedure of but does not insert into the database.
<?php
require_once("../config.php");
$nome = $_POST['nome'];
$tipo = $_POST['tipo'];
$data = $_POST['data'];
/*Inserar na tabela */
$query_evento = "INSERT INTO evento (nome, tipo, data) VALUES ('".$nome."', '".$tipo."', '".$data."')";
$inserir_evento = mysql_query($query_evento);
?>