0byt3m1n1
Path:
C:
/
wamp64
/
www
/
WaterCat
/
[
Home
]
File: applylistnew.php
<?php $id=$_GET['id']; $servername="localhost"; $username="root"; $password=""; $dbname="watercat"; $conn=mysqli_connect($servername,$username,$password,$dbname); $query="select * from info where id='$id'"; $result=mysqli_query($conn,$query); ?> <html> <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> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-MLKHL5MWPW"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-MLKHL5MWPW'); </script> </head> <body 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>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> </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> <td><a href="Editn.php?id=<?php echo $rows['id']?>&ph=<?php echo $rows['pH']?>&alk=<?php echo $rows['Alkalinity']?>&hdns=<?php echo $rows['Hardness']?>&cl=<?php echo $rows['Chloride']?>&tds=<?php echo $rows['TDS']?>&iron=<?php echo $rows['Iron']?>&amonia=<?php echo $rows['Ammonia']?>&nitrate=<?php echo $rows['Nitrate']?>&phs=<?php echo $rows['Phosphate']?>&rchl=<?php echo $rows['Residual_Chloride']?>&wtr=<?php echo $rows['WaterLevel']?>&rmks=<?php echo $rows['Remarks']?>&infoid=<?php echo $rows['info_id']?>">Edit</a></td> <td><a href="printed.php?id=<?php echo $rows['id']?>&infoid=<?php echo $rows['info_id']?>">Preview</a></td> </tr> <?php } ?> </table> </body> </html>