Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <table border="1">
- <tr>
- <th>BOOK ID</th>
- <th>AUTHOR</th>
- <th>TITLE</th>
- </tr>
- <?php
- $db=mysqli_connect("localhost","root","","BOOKS");
- $sql="select * from book_details";
- $result=mysqli_query($db,$sql);
- while($row=mysqli_fetch_assoc($result))
- {
- ?>
- <tr>
- <td><?php echo $row["BOOKID"];?></td>
- <td><?php echo $row["AUTHOR"];?></td>
- <td><?php echo $row["TITLE"];?></td>
- </tr>
- <?php
- }
- ?>
- </table>
- <a href="index.php">go back</a>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement