I am trying to send user\_id in url which id i get after login conform.Following are the code
 extract($\_POST);

```
    $result = $dbg->prepare("SELECT `p_id`,`email` FROM `complit_register_provider` WHERE `email`=:hjhjhjh AND `password`=:psspsps") ;
                      $result->bindParam(':hjhjhjh', $login_mail);
                      $result->bindParam(':psspsps', $login_password);
                      $result->execute();
                      $rows = $result->fetch(PDO::FETCH_ASSOC);
                      $row=$result->rowCount();
             if($rows){
                 $result=$result->fetch(PDO::FETCH_ASSOC);
                 $_SESSION['Uname']=$rows['email'];
                 $_SESSION['Utype']="provider";
                $_SESSION['Uid']=$rows['p_id'];
        $user_id=$_SESSION['Uid'];

header('Location: http://127.0.0.1/pages/user_index/provider/user_profile/show_own_profile.php?Show=$user_id');
             }

```

But it's not working. The url showing like.

<http://127.0.0.1/pages/user_index/provider/user_profile/show_own_profile.php?Show=>$user\_id,
It should show for example like
<http://127.0.0.1/pages/user_index/provider/user_profile/show_own_profile.php?Show=9>
How can i do this?