I have a table
info
idno studno name
1509 001 Mark
1510 002 Dennis
1690 003 Ben
1671 004 Martial
1257 005 Lucy
attendance
idno Date
1509 2017/12/1
1510 2017/12/1
1671 2017/12/1
1257 2017/12/1
1509 2017/12/2
1510 2017/12/2
1671 2017/12/2
1257 2017/12/2
1690 2017/12/2
What I want to display is
name 2017/12/1 2017/12/2
Mark P P
Dennis P P
Ben A P
Martial P P
Lucy P P
Can somebody help me, and also I have seen some codes(prepared statement) but it seems no to work in phpmyadmin routines