0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: view.php
<?php $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=mysqli_connect($servername,$username,$password,$dbname); $em=$_GET['email']; $id=$_GET['id']; $query="select * from contact"; $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"> </head> <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>ID</th> <th>Name of User</th> <th>Email</th> <th>Mobile No</th> </tr> <tr> <?php while($rows=mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $rows['con_id'];?></td> <td><?php echo $rows['Name'];?></td> <td><?php echo $rows['Email'];?></td> <td><?php echo $rows['Mobile'];?></td> <td><?php echo $rows['Message'];?></td> <td><a href="reply.php?id=<?php echo $rows['con_id']?>&ph=<?php echo $rows['Name']?>&alk=<?php echo $rows['Email']?>&hdns=<?php echo $rows['Mobile']?>&cl=<?php echo $rows['Message']?>">Give Your Response</a></td> </tr> <?php } ?> </table> </body> </html>