In above table inside the while loop, first col shows student name and 2nd col shows view profile button.when i click view profile button then it calls modal and will show me student details information. In this way when i click view profile button of 2nd student then it call modal and will show me student details of 2nd student. But my problem is i can't do this. I need view profile button will be dynamic. How can i do this ?? Can you please help me??