I have created a db which includes a user_id for login. What I would like to happen is for the user to login and they go to their page with their info on it. I can get it to go to their page but not show just the login user’s info.
This is what I have.
<? /*if(!$auth=="ok") { header ( "Location:login.html"); exit; } */ $id=="id"; ?> <?php $host="localhost"; $username="beylah"; $password="******"; $db_name="students"; $tbl_name="team_users"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); ?>