0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: viewres.php
<?php $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=mysqli_connect($servername,$username,$password,$dbname); $em=$_GET['email']; $query="select * from responds where Email='$em'"; $result=mysqli_query($conn,$query); ?> <!doctype html> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="styles.css"> <link rel="stylesheet" type="text/css" href="nav.css"> <style> table, th, td { border: 1px solid black; } </style> </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> <table cellspacing="5px" cellpadding="5%"; align="center"> <tr> <th>Name</th> <th>Query</th> <th>Reply</th> </tr> <tr> <?php while($rows=mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $rows['Name'];?></td> <td><?php echo $rows['Query'];?></td> <td><?php echo $rows['reply'];?></td> </tr> <?php } ?> </table> </body> </html>