2 Als de uitvoering faalt

$stmt = $mysqli -> prepare('INSERT INTO stmt_users (name) VALUES (?)');

$name = ‘User’;
$stmt -> bind_param(‘i’, $name);

if (! $stmt -> execute()) {
echo $stmt -> error;
}