I (beginner in the php development area) I'm having trouble inserting data using the code below:
<?php
$conn = new mysqli("zz", "zz", "zz", "zz");
// Alterei a string de conexão por questão de segurança
if ($conn->connect_error) {
echo "Error: " .$conn->connect_error;
}
$login = 'user';
$senha = '12345';
$stmt = $conn->prepare("INSERT INTO tbl_usuario (login,senha) VALUES (?, ?)");
$stmt->execute();
?>
It runs normally, with no error, but when I check my database, no data was actually included: /. Could someone help me?