我在数据库中有一个表,并在我的 php 文件中获取输出,例如
我的数据库中有一个表“课程”
id semester channel course coursecode grade
1 Sem1 Channel1 Digital Networks C70089 A
2 Sem1 Channel1 Network Theory N00089 A+
3 Sem1 Channel2 Data & Structur D70089 B
4 Sem1 Channel2 Object Oriented C70089 A
5 Sem2 Channel1 Micro Processors M70089 A
6 Sem2 Channel1 Electricals EE0089 B+
7 Sem2 Channel2 Elect & Communs EC7080 C
8 Sem2 Channel2 Elect Labs LEO90 B+
如何通过表格或 div 或 ul 动态显示。谁能建议我做这个设计的简单方法
我认为这是一个愚蠢的问题,因为我尝试了各种方式,我来到了这里
Sem1 Sem2
Channell Channell
Course Course Code Grade Course Course Code Grade
Digital Networks C70089 A Micro Processors ------- ---
Network Theory N00089 A+ Electricals ------- ---
Channel2 Channel2
Course Course Code Grade Course Course Code Grade
Data & Structur D70089 B Elect & Communs ----- -----
Object Oriented C70089 A Elect Labs ----- -----