Help me please I'm new for php....
the below code is to show the menus for a logged in user. but when user is not logged in then these are not displayed so i want to display a login link for new use using else function with this script.. But i can;t do this. SO please help me right now
<?
if (isset($_SESSION['user_id'])) {?>
<div class="myaccount">
<p><strong>My Account</strong></p>
<a href="myaccount.php">My Account</a><br>
<a href="mysettings.php">Settings</a><br>
<a href="logout.php">Logout </a>
<p>You can add more links here for users</p></div>
<? } ?>
Now tell me how i use a login link with this script for a new user.....