prepare($sql); if ($stmt->execute($params)) { jsonSuccess(null, "Promo updated successfully"); } else { jsonError("Failed to update promo"); } ?>