« Back to History
khata_delete.php
|
20260723_000646.php
Initial Domain Snapshot
Copy Code
<?php require_once __DIR__ . '/auth.php'; require_login(); $SHOP_ID = (int)$_SESSION['owner']['shop_id']; $id = (int)($_POST['entry_id'] ?? 0); if ($id > 0) { $pdo->prepare(" DELETE FROM khata_entry WHERE entry_id=? AND shop_id=? LIMIT 1 ")->execute([$id, $SHOP_ID]); } header('Location: khata_entry.php'); exit;