<?php
include("db.php");
$result = mysql_query("SELECT * FROM p_reg ");
?>
The issue I am having is that I have a link in the navigation bar called 'User Profile'. This link should fetch a list of all the current users in the database but i only need personal profile of login user.