Hi there,
I am having a problem on the concept.
I use this line to display a list of university FIRST year student
<a href="manage_lecturer.php?id=lect&lect_id=<?php echo $row_lecturer['lect_id']; ?>&y=year&year=1 style="color:#FFFFFF; font-size: 13px;">Student List</a>
If I want to display list of university FIRST and SECOND year student, can I do like this?
<a href="manage_lecturer.php?id=lect&lect_id=<?php echo $row_lecturer['lect_id']; ?>&y=year&year=1&year=2 style="color:#FFFFFF; font-size: 13px;">Student List</a>
If I am wrong, please correct me and bring me into the right track. I do not want to display the student in the separated page.
Rubble
2
I do not think so as year=2 will overwite year=1
If you have a different name for year=2 it should work depending on the database setup and the code.
You would then display year 1 and have a check to see if the year 2 variable is set and if it is display the detail.
Yes. if I do this, it will display only the list of the SECOND year student
<a href="manage_lecturer.php?id=lect&lect_id=<?php echo $row_lecturer['lect_id']; ?>&y=year&year=2 style="color:#FFFFFF; font-size: 13px;">Student List</a>
But I do not want to display them separately. Any approaches I can use to display all of them regardless their year of study?
Do you mean like this?
<a href="manage_lecturer.php?id=lect&lect_id=<?php echo $row_lecturer['lect_id']; ?>&y=year&year[]=1&year[]=2 style="color:#FFFFFF; font-size: 13px;">Student List</a>
correct me if I am wrong.