Help Needed In creating Admin page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help Needed In creating Admin page

I am creating a portal. for staff and student. I am done with the student page.. I am building the Staff page where the Staff can view student profile, add and edit information. The staff Will view all his student names as links... when he clicks on them he can view the profile of the particular student he clicks... please how can I link the information from the database to that particular student he clicks... with PHP and MYSQL.. sorry if I didn't ask the question well... thank You.

18th Apr 2017, 3:14 PM
Master Wayne
Master Wayne - avatar
2 Answers
+ 3
do you already have the database? do your entries have an id as primary key? use the id to get the information. select * from students where id=$id; put the id in the link <a href="edit_student.php?id=$id"> John Doe </a> and take it on the edit page: $_GET["id"];
18th Apr 2017, 4:14 PM
Mario L.
Mario L. - avatar
+ 1
Yeah. Thanks Very much.
18th Apr 2017, 4:57 PM
Master Wayne
Master Wayne - avatar