prepare($sql); $stmt->bindParam(':driverID', $driverID); $stmt->bindParam(':passengerID', $passengerID); $stmt->bindParam(':rideID', $rideID); $stmt->bindParam(':note', $note); $stmt->execute(); if ($stmt->rowCount() > 0) { jsonSuccess(null, "Record inserted successfully"); } else { jsonError("Failed to insert record"); } ?>