Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $connection = new mysqli("127.0.0.1", "root", "", "mydb"); // starts a new connection
- $result = $connection->query("SELECT * from `honk`"); // the query result
- while($column = $result->fetch_assoc()) { // for each row in the query
- print_r($column); // print the table
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement