How do i write, "If someone is logged in, then input this code instead."

<body class="landing">
    <div id="page-wrapper">

        <!-- Header -->
            <header id="header">
                <h1 id="logo"><a href="index.html">CashBallz</a></h1>
                <nav id="nav">
                        <li><a href="index.html">Home</a></li>
                            <a href="#">Play</a>
                                <li><a href="left-sidebar.html">Server 1</a></li>
                                <li><a href="right-sidebar.html">Server 2</a></li>
                                <li><a href="no-sidebar.html">Server 3</a></li>
                        <li><a href="elements.html">Paypal</a></li>
                        <li><a href="loginsystem/loginpage.php" class="button special">Sign Up/Login</a></li>

Where there is the button that says Sign Up/Login, i want it to say Profile and redirect to a different page if someone is currently logged in.
Also, under the navigation bar (the header) i want it to say "Welcome ( the person's username)"
How do i do that?

by the way i am using a database in phpmyadmin called "accounts", with a table called "users"
(the quotations are not included in the name of the database and table)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!