Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "functions.php";
- $a = checkLogin();
- if($a==1) {
- $id = $_COOKIE['id'];
- include "databaseConnector.php";
- $query = $mysqli->query("SELECT * FROM users WHERE id = '$id'") or die($mysqli->error.__LINE__);
- if($query->num_rows > 0) {
- while($row = $query->fetch_assoc()) {
- ?>
- <?php echo stripslashes($row['firstname'])." ".stripslashes($row['lastname']); ?>
- <?php
- }
- }
- else {
- return false;
- }
- }
- else {
- redirectIndex();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement