- <?php
- $query = "SELECT * FROM booking";
- echo '<b><center>Database Output</center><b>';
- /**
- * This will now loop through each result from the query
- * Row is an array, so you access it through $row['column_name']; (column_name) is
- * the column of the MySQL database table
- */
- echo "<p><b>$row['artist'] $row['price']</b></p>";
- echo "<p>Company: $row['company']";
- # Add more here of what ever you want, keep building it up
- }
- ?>
