prepare($sql); $stmt->bindParam(':passenger_id', $passengerId); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(PDO::FETCH_ASSOC); jsonSuccess($row); } else { jsonError("No rating record found"); } ?>