Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require("../pages/header.php");
- require("../functions/db_connect.php");
- //////////////////
- // PROFILE PAGE //
- //////////////////
- //user profile content placed below ?>
- <?php if (isset($_SESSION['username'])) { ?>
- <aside id="profilenav">
- <ul>
- <li><a href="<?php echo $url . 'profile';?>">View my profile</a></li>
- <li><a href="<?php echo $url . 'team';?>">Create a team</a></li>
- </ul>
- </aside>
- <section id="content">
- <?php
- $query="SELECT * FROM players username, password, email, birth, elo, exposer, newsletter WHERE id='$username'";
- $result=mysql_query($query);
- mysql_close();
- $username=$_SESSION['username'];
- $password=$_SESSION['password'];
- $email=$_SESSION['email'];
- $birth=$_SESSION['birth'];
- $elo=$_SESSION['elo'];
- $exposer=$_SESSION['exposer'];
- $newsletter=$_SESSION['newsletter'];
- echo "<b>$username<br>$password<br>$email<br>$birth<br>$elo<br>$exposer<br>$newsletter";
- ?>
- </section>
- <?php }else { ?>
- <section id="content">
- <h1>You must sign in to see this information</h1>
- </section>
- <?php }?>
- <?php require("../pages/footer.php"); ?>
Add Comment
Please, Sign In to add comment