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