Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('session.php');
- //connect database-------------------------------
- $myloginname = $login_session;
- $sql = "SELECT * FROM user_info WHERE login_name = '$myloginname'";
- $result = mysqli_query($db,$sql);
- $row = mysqli_fetch_array($result, MYSQL_ASSOC);
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Welcome</title>
- <!-- Style has been removed! -->
- </head>
- <body>
- <div class="nav">
- <ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="news.php">News</a></li>
- <li><a href="contact.php">Contact</a></li>
- <li><a href="about.php">About</a></li>
- <li><a href="logout.php">[ Logout ]</a></li>
- </ul>
- </div>
- <div class="main">
- <br />
- <br />
- <br />
- <h1 id="bigtitle">WELCOME TO NIGHTMARES TERMINATOR OFFICIAL SITE!</h1>
- <h2 id="tip">Here is your personal information:</h2>
- <table>
- <tr>
- <td><b>Login Name:</b></td>
- <td><b><?php echo $row["login_name"]; ?></b></td>
- </tr>
- <tr>
- <td> <b>Name:</b></td>
- <td><b><?php echo $row["firstname"] + " " + $row["lastname"]; ?></b></td>
- </tr>
- <tr>
- <td> <b>ID:</b></td>
- <td><b> <?php echo $row["ID"]; ?></b></td>
- </tr>
- <tr>
- <td> <b>Age:</b></td>
- <td><b><?php echo $row["age"]; ?></b> </td>
- </tr>
- <tr>
- <td><b> Phone number:</b></td>
- <td><b><?php echo $row["phone"]; ?></b></td>
- </tr>
- <tr>
- <td><b>E-Mail address:</b></td>
- <td><b><?php echo $row["email"]; ?></b></td>
- </tr>
- </table>
- <hr id="hr">
- <div class="content">
- <h2 class="leader"> Want get some new information? </h2>
- <h2 class="leader"> Go to:</h2>
- <h2 class="leader"><a href="news.php"> >>>>>>>>>>>>>>>>>>>>NEWS<<<<<<<<<<<<<<<<<<<< </a></h2>
- </div>
- <hr id="hr">
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment