prepare($sql); // ربط القيم $stmt->bindParam(':driver_name', $driver_name); $stmt->bindParam(':phone', $phone); $stmt->bindParam(':national_id', $national_id); $stmt->bindParam(':birth_date', $birth_date); $stmt->bindParam(':license_type', $license_type); $stmt->bindParam(':site', $site); // تنفيذ الاستعلام if ($stmt->execute()) { jsonSuccess(null, "Driver data saved successfully"); } else { jsonError("Failed to save driver data"); } ?>