简体   繁体   中英

What steps are needed to create dynamic PHP pages based on MySQL criteria?

I have a large library of folk music which is organized by "collection" (ID and name) in the MYSQL database.

I have an html5 player in the root directory which is set up to add all tracks in the "track" table to the playlist. Each track in the "track" table includes collection IDs from the "collection" table.

What I want: A user can go to:

www.site-title.com/player/pID=1 //(or something like that)

And the playlist will only evaluate tracks where collection_id=1

Can you explain how this would be developed logically?

  1. Run database query
  2. Fetch results
  3. Use results to build page
  4. Send page to user

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM