i am trying to develop a website in php by reading the discussion and tutorials available on the internet and i have completed it almost, its working well we can register and data base working well,
but problem is that i want to display user name on all the pages after login..
and i have placed a div in header.php page contained welcome message for the user.
here is code i have write in header.php page
<div id="before_login"> Hi Guest! <a href="register.php">Regiter Here</a></div>
<div id="after_login">Welcome UserName <a href="logout.php">logout</a></div>
and for the new users(new to the website) i want to display <div id="before_login"> message ,, and after login <div id="after_login"> message...
can anyone help me in this topic ...and please in simple terms ...i am new to php so please in simple terms witch i can under stand easily...