0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: queries.php
<?php $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=mysqli_connect($servername,$username,$password,$dbname); $query="select * from contact"; $result=mysqli_query($conn,$query); ?> <html> <head> <title>Fetch data</title> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> <link rel="stylesheet" type="text/css" href="styles.css"> <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>ID</th> <th>Name of User</th> <th>Email</th> <th>Mobile No</th> <th>Message</th> <th>STATUS</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><button class="btn fw-bolder px-4 py-2 btn-warning"><a href="reply.php?id=<?php echo $rows['con_id']?>&name=<?php echo $rows['Name']?>&Email=<?php echo $rows['Email']?>&Mob=<?php echo $rows['Mobile']?>&msg=<?php echo $rows['Message']?>">Give Your Response</a></button></td> </tr> <?php } ?> </table> </body> </html>