setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
if (isset($_GET['nome'])) {
$stmt=$conn->prepare("INSERT INTO oggetti (nome,descrizione,descrizione_lunga,categoria_id) VALUES (?,?,?,?)");
$stmt->execute(array($_GET['nome'],$_GET['descrizione'],$_GET['descrizione_lunga'],$_GET['categoria_id']));
echo "Inserimento avvenuto";
} else {
?>