Hello every body
Please help me to write this code
i want to display table like this
http://imageshack.us/photo/my-images/443/reportw.jpg/

Generated from three database tables depends on student ID

http://img51.imageshack.us/img51/1272/tablesh.jpg

So i want to display this table without any fixed value of exams or subjects .. just i want the idea of looping

And is this the best way to insert the students marks?? coz by this way if i have 5000 student and 10 subjects and 12 exam in year .. i will have mor than 500.000 record in table Stu_Marks

sorry for my english language