I have a script that works great on my dashboard, but I put it on another page and it is not working.
When a word has an accent, eg "Natália" the system is saving in the bd just "Nat" excluding the rest that is part of the word.
include "painel_dados/bd.php";
// recebendo os dados do formulario
$nome = $_POST['nome'];
$cpf = $_POST['cpf'];
$query = $mysqli->prepare('INSERT INTO 'associados' ('nome', 'cpf') values (?,?)')or die($mysqli->error);
$query->bind_param('ss', $nome, $cpf);
$query->execute();
Where am I going wrong? If I give one
echo $ name;
The word appears right. Just in time to save in the bd it is incomplete.