prepare($sql); $stmt->bindParam(':passenger_id', $passenger_id); $stmt->bindParam(':driverID', $driverID); $stmt->bindParam(':rideId', $rideId); $stmt->bindParam(':rating', $rating); $stmt->bindParam(':comment', $comment); $stmt->execute(); if ($stmt->rowCount() > 0) { jsonSuccess(null, "Rate inserted successfully"); } else { jsonError("Failed to save rating information"); } ?>