0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: welcome.php
<<!doctype html> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="nav.css"> </head> <body class="bg-white" background="assets/images/slider/s1.jpg" alt=""> <div class="topnav"> <a class="active" href="indexnew.php">Home</a> <a href="#news">News</a> <a href="contact.php">Contact</a> <a href="about.html">About</a> </div> <?php session_start(); $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=new mysqli($servername,$username,$password,$dbname); $id=$_GET['id']; $query="select * from register where Id='$id'"; $result=mysqli_query($conn,$query); $rows=mysqli_fetch_assoc($result); $id=$rows['Id']; $em=$rows['Email']; if(isset($_SESSION['username'])) { echo "<center> <h1> Welcome ".$_SESSION['username']."<br> </h1> </center>"; echo "<br>"; echo" <center> <button> <a href='apply.php?id=$id'>Add Details</a> </button> </center> <br>"; echo" <center> <button> <a href='viewres.php?email=$em'>View Your Query Response</a> </button> </center> "; } ?> </header> </body> </html>