Advertisement
Hydrase

view.php

Jun 7th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <html>
  2. <table border="1">
  3. <tr>
  4. <th>BOOK ID</th>
  5. <th>AUTHOR</th>
  6. <th>TITLE</th>
  7. </tr>
  8. <?php
  9. $db=mysqli_connect("localhost","root","","BOOKS");
  10. $sql="select * from book_details";
  11. $result=mysqli_query($db,$sql);
  12.  
  13. while($row=mysqli_fetch_assoc($result))
  14. {
  15. ?>
  16.  
  17. <tr>
  18. <td><?php echo $row["BOOKID"];?></td>
  19. <td><?php echo $row["AUTHOR"];?></td>
  20. <td><?php echo $row["TITLE"];?></td>
  21. </tr>
  22. <?php
  23. }
  24. ?>
  25. </table>
  26. <a href="index.php">go back</a>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement