prepare($sql); // Bind parameters $stmt->bindParam(':driverId', $driverId); $stmt->bindParam(':notes', $notes); // Execute the statement $success = $stmt->execute(); if ($success) { jsonSuccess(null, "Record inserted/updated successfully"); } else { jsonError("Failed to insert or update record"); } ?>