Hello I have a sample set of data in my database:
+-----------+-------------+---------------+-------+
| IDNumber | SubjectCode | SubjectName | Grade |
+-----------+-------------+---------------+-------+
| 2012-1234 | IT-101 | Intro to I.T | 1.75 |
| 2012-1234 | IT-202 | Advanced I.T | 1.50 |
| 2012-5678 | CS-300 | Haskell Prog. | 1.00 |
+-----------+-------------+---------------+-------+
My problem is how can I automatically create a table in PHP base on their data. Let’s say when I want to search for IDNumber 2012-1234 it will create 4 column and 2 rows automatically and print it in the browswer, the same with IDNumber 2012-5678.
Just give me some hint and I’ll just do the rest. Some help / ideas will be much more appreciated.
1 Answer