prepare($sql); // Bind the parameters to the SQL query $stmt->bindParam(':kazan', $kazan); $stmt->bindParam(':comfortPrice', $comfortPrice); $stmt->bindParam(':speedPrice', $speedPrice); $stmt->bindParam(':deliveryPrice', $deliveryPrice); $stmt->bindParam(':freePrice', $freePrice); $stmt->bindParam(':latePrice', $latePrice); $stmt->bindParam(':heavyPrice', $heavyPrice); $stmt->bindParam(':adminId', $adminId); $stmt->bindParam(':naturePrice', $naturePrice); $stmt->bindParam(':country', $country); $stmt->bindParam(':fuelPrice', $fuelPrice); // Execute the statement if ($stmt->execute()) { // Print a success message jsonSuccess(null, "Kazan saved successfully"); } else { // Print a failure message jsonError("Failed to save Kazan"); } // Close the statement $stmt->close(); ?>