prepare($sql); $stmt->bindParam(':id', $id, PDO::PARAM_INT); // استخدام bindParam لحماية الاستعلام $stmt->execute(); if ($stmt->rowCount() > 0) { jsonSuccess(null, "Promo data deleted successfully"); } else { jsonError("Failed to delete promo data"); } ?>