<!-- php code to access user id -->
<?php
$user_ip=getIPAddress();
$get_user="Select * from `user` where user_ip='$user_ip'";
$result=mysqli_query($con,$get_user);
$run_query=mysqli_fetch_array($result);
$user_id=$run_query['user_id'];
?>
<div class="container">
<h2 class="text-center text-success">خيارات الدفع</h2>
<div class="row d-flex justify-content-center align-items-center my-5">
<div class="col-md-6">
<a href="https://www.paypal.com" target="_blank"><img src="../images/wwe.png" alt=""></a>
</div>
<div class="col-md-6">
<a class="text-decoration-none" href="order.php?user_id=<?php echo $user_id ?>"><h2 class="text-danger text-center">pay offline</h2></a>
</div>
</div>
</div>
</body>
</html>
When I click pay offline the userid should go to the url but it doesn't work pls i need help