0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: pview.php
<?php $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=mysqli_connect($servername,$username,$password,$dbname); $id=$_GET['id']; $query="select * from portal where id='$id'"; $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><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"> <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 of Location</th> <th>Details about the Place</th> <th>Site View</th> <th>Action</th> </tr> <tr> <?php while($rows=mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $rows['Location'];?></td> <td><?php echo $rows['Details'];?></td> <?php echo "<td><img width='100px' height='100px' src='images/$rows[image]' alt='$rows[image]'></td>"?> <td> <?php echo "<button class='btn fw-bolder px-4 py-2 btn-danger'> <a href='delete.php?id=$id'>DELETE</a></td></tr>"?> <?php } ?> </table> </body> </html>