简体   繁体   English

根据MySQL标准创建动态PHP页面需要采取什么步骤?

[英]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. 我在MYSQL数据库中有一个大型的民间音乐库,它由“集合”(ID和名称)组织。

I have an html5 player in the root directory which is set up to add all tracks in the "track" table to the playlist. 我在根目录中有一个html5播放器,该播放器设置为将“曲目”表中的所有曲目添加到播放列表中。 Each track in the "track" table includes collection IDs from the "collection" table. “轨道”表中的每个轨道均包含“集合”表中的集合ID。

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 播放列表将仅评估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 发送页面给用户

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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