Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect('localhost', 'root', '');
- mysql_select_db('bookstore');
- $result = mysql_query("SELECT * FROM books");
- echo "<h1>Books List</h1>";
- echo "<ul>";
- while($data = mysql_fetch_array($result)) {
- echo "<table border=1>
- <tr>
- <td align=center width=111>$data[book_name] :</td>
- <td align=center width=111> Rp. $data[book_price]</td>
- </tr>
- </table>";
- }
- echo "</ul>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement