0

I’m working on a PHP project, but I’m facing a problem in getting the user’s data of the profile page while using SESSION[] function everything is OK.

if(isset($_GET['get_user_id'])){
    $get_user_id = $_GET['get_user_id'];
     $get_user_user_q = "SELECT * FROM members WHERE id = '".$_GET['get_user_id']."'";
    $get_user_user_run = mysqli_query($con,$get_user_user_q);
    if(mysqli_num_rows($get_user_user_run) > 0){
        while($row = mysqli_fetch_array($get_user_user_run)){
            $get_user_userId = $row['id'];
            $get_user_userFname = $row['fname'];
            $get_user_userLname = $row['lname'];
            $get_user_userEmail = $row['email'];
            $get_user_userStatus = $row['status'];
            $get_user_userProfileImg = $row['profileImg'];
            $get_user_userCoverImg = $row['coverImg'];
            $get_user_userVerKey = $row['ver_key'];
            $get_user_userRule = $row['rule'];
              $get_user_userFullName = "$get_user_userFname $get_user_userLname";
            $get_user_lNametrim = substr($get_user_userLname,0,1);
            $get_user_userFullNameTrim = "$uget_user_serFname $get_user_lNametrim";
        }
    }
 }

Asked question