Good day everyone, 
Firstly let me explain a little bit about my page flow, btw Im using PHP:-

1. User will Login to the page using their ID (NRIC No) with pw
2. Then, In the Main page I would like to display their full name (Eg: Welcome, **fullname**) whereby the name will automatically fetched from the same table with the nric no in the database.

I was successfully do that when I used the same attribute (fullname) with the ID. **However**, my sv wants the login ID using NRIC No. SO, When I edit the code, there is nothing appear in the main page :(

**Here are my codes in the main page**;

```
    <!-- logged in user information -->
    <?php  if (isset($_SESSION['namapengguna'])) : ?>
        <p style="margin-left:360px;margin-right:60px">Welcome<strong><?php echo $_SESSION['namapengguna'];  ?></strong></p>
    <?php endif ?>

```

\*\*\*The information(NRIC No, full name) in the database was successfully inserted.
Example of my Table in database:-

namapengguna | idpengguna | password |

Maisarah | 1234567891 | dfsdfdsf |

This is code for login:-

```
// LOGIN USER
if (isset($_POST['login_user'])) {
    $idpengguna = mysqli_real_escape_string($db, $_POST['idpengguna']);
    $password = mysqli_real_escape_string($db, $_POST['password']);

    if (empty($idpengguna)) {
        array_push($errors, "Masukkan ID Pengguna");
    }
    if (empty($password)) {
        array_push($errors, "Masukkan Kata Laluan");
    }

    if (count($errors) == 0) {
        $password = md5($password);
        $query = "SELECT * FROM users WHERE idpengguna='$idpengguna' AND password='$password'";
        $results = mysqli_query($db, $query);

        if (mysqli_num_rows($results) == 1) {
            $_SESSION['idpengguna'] = $idpengguna;
            $_SESSION['success'] = "";
            header('location: lamanutama.php');
        }else {
            array_push($errors, "ID Pengguna/Kata Laluan salah");
        }
    }
}

```