I am trying to save a row that is simple $id = "27491";, in a database table called usersunder the field user idhere, that I have tried at present, but it does not work ...
mysqli_query($DB,"INSERT INTO `users` SET `id` = '".$id."'");

EDIT . The content is simply not included in the database, the problem was only a typo.
Also does not work with my string $title.
mysqli_query($DB,"INSERT INTO `users` SET `title` = '".mysqli_real_escape_string($DB,$title)."'");
source
share