[php]<?php
session_start();
$username = $_POST[‘username’];
$pass = $_POST[‘password’];
if ($username&&$pass)
{
$conn = mysql_connect(“localhost”,“root”,"") or die (“Cannot connect!”);
mysql_select_db(“job_seeks”) or die(“cannot find the db”);
$query = mysql_query(“SELECT * FROM employee_user WHERE username=’$username’”);
$numrows = mysql_num_rows($query);
if ($numrows!=0)
{
while ($row = mysql_fetch_assoc($query))
{
$dbusername = $row[‘username’];
$dbpassword = $row[‘password’];
}
if ($username==$dbusername&&$pass==$dbpassword)
{
echo "You are in! <a href='employee_page.php'>Click</a> here to enter the member page";
$_SESSION['username']=$dbusername;
}
else
echo “incorect password and username”;
}
else
echo “Thats user doesnt exist”;
}
else
echo “please enter user name and password”;
[/php]
Based on the screenshot that i given above, i have a question about it… i’m trying to look forward the way how to dissapear the login part after the user logged in… since i already set the login sidebar at all the page of my web site… hope some of you guys can help me thankx