Advertisement
emperorzaky

Untitled

Jun 21st, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. $link=mysqli_connect("localhost","root","qwerty");
  3. include 'home.php';
  4.  
  5. if(!isset($_SESSION['user']))
  6. {
  7. header("Location: index.php");
  8. }
  9. $res=mysqli_query($link,"SELECT * FROM users WHERE user_id=".$_SESSION['user']);
  10. $userRow=mysqli_fetch_array($res);
  11. ?>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  16. <title>Welcome - <?php echo $userRow['username']; ?></title>
  17. <link rel="stylesheet" href="style.css" type="text/css" />
  18. </head>
  19. <body>
  20. <img src="images/2.png" width="81" height="85" alt=""/> <font size="20">Politeknik Negeri Ujung Pandang</font>
  21. <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  22. <b>Tugas Interfacing</b>
  23. <b>Dibuat Oleh</b>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement