0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: listsample.php
<?php $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=mysqli_connect($servername,$username,$password,$dbname); $id=$_GET['id']; $query="select * from info join details on info.id=details.Id where info.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> <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> <style> table, th, td { border: 1px solid black; } </style> </head> <body background="assets/images/slider/s1.jpg" alt=""> <table cellspacing="5px" cellpadding="5%"; align="center"> <tr> <th>pH</th> <th>ALKALINITY</th> <th>HARDNESS</th> <th>CHLORIDE</th> <th>TDS</th> <th>IRON</th> <th>AMMONIA</th> <th>NITRATE</th> <th>PHOSPHATE</th> <th>RESIDUAL CHLORIDE</th> <th>WATER LEVEL</th> <th>REMARKS</th> <th>Site View</th> </tr> <tr> <?php while($rows=mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $rows['pH'];?></td> <td><?php echo $rows['Alkalinity'];?></td> <td><?php echo $rows['Hardness'];?></td> <td><?php echo $rows['Chloride'];?></td> <td><?php echo $rows['TDS'];?></td> <td><?php echo $rows['Iron'];?></td> <td><?php echo $rows['Ammonia'];?></td> <td><?php echo $rows['Nitrate'];?></td> <td><?php echo $rows['Phosphate'];?></td> <td><?php echo $rows['Residual_Chloride'];?></td> <td><?php echo $rows['WaterLevel'];?></td> <td><?php echo $rows['Remarks'];?></td> <?php echo "<td><img width='100px' height='100px' src='images/$rows[Image]' alt='$rows[Image]'></td>"?> </tr> <?php } ?> </table> <button class="btn fw-bolder px-4 py-2 btn-warning"><a href="queries.php">View All Queries</a></button> </body> </html>