prepare("INSERT INTO positions (id, election_id, name, max_votes) VALUES (?, ?, ?, ?)"); $stmt->execute([$id, $election_id, $name, $max_votes]); audit_log('Added position', 'positions', $id); header("Location: ../view_election.php?id=$election_id&success=1"); exit; } catch (Exception $e) { die($e->getMessage()); } }