- Run the statements in sql/schema.sql on your MySQL database to set up the app schema
- Run the statements in sql/dummy-data.sql on your MySQL database to insert some dummy data (optional)- Edit includes/db_connect.php with your database connection details
// define the SQL query to run (from lab 3 queries.sql!)
// use column aliases if necessary to make referencing fields in result-set easier
$sql="SELECT Album.title, Album.price, Album.upc, Artist.first_name, Artist.last_name, Genre.name AS genre, (SELECT COUNT(*) FROM Track WHERE Album.upc=Track.album_upc) AS num_tracks