Results 1 to 2 of 2
Thread: Bootstrap modal
Oct 9, 2013, 02:42 #1
- Join Date
- Oct 2010
- 0 Post(s)
- 0 Thread(s)
I need help on bootstrap modal. Suppose, a table contains 5 rows.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??
//modal function of view student
$resultV = mysql_query("SELECT * FROM student WHERE id =$ID"); // Here i need dynamic id
$row = mysql_fetch_array($resultV);
<!-- Modal -->
<div class="modal fade" id="view-student" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-dialog" style=" width:950px;">
/* Table content display student information */
Last edited by cpradio; Oct 9, 2013 at 04:21.