Hi, I’m afraid it’s auto increment … =/
I still believe the problem is here:
foreach ($inventario as &$entry) {
$objeto = $entry->objeto;
$stmt = $conn->prepare("INSERT INTO inventario VALUES (NULL, ?, ? )");
$stmt->bind_param("si", $objeto, $charid);
$stmt->execute();
$stmt->close();
}
Or I don’t know, what to think…