prepare($sql); $stmt->bindValue(':promoCode', $promoCode); $stmt->bindValue(':amount', $amount); $stmt->bindValue(':description', $description); $stmt->bindValue(':passengerID', $passengerID); $stmt->execute(); if ($stmt->rowCount() > 0) { jsonSuccess(null, "Promo data saved successfully"); } else { jsonError("Failed to save promo data"); } ?>