prepare($sql); $stmt->execute([ ':id' => $driver_id, ':lat' => $lat, ':lng' => $lng, ':head' => $heading, ':spd' => $speed, ':stat' => $status ]); // ملاحظة: لا نحتاج لإرسال socket notification هنا لأن هذا يحدث كل ثانية // الراكب يرى التحديث لأنه متصل بسوكيت اللوكيشن ويستمع لحدث 'update_driver_location' printSuccess("Location Updated"); } catch (PDOException $e) { printFailure("DB Error: " . $e->getMessage()); } ?>