I want to create a page view and update by using the bootstrap modal, but every time I click on a link view existing data in the database can not display the page to bootstrap modal. How can I make the data in the database available to display the bootstrap modal?
<table class="table table-striped table-bordered table-hover"> <thead> <tr class="alert alert-info text-center"> <th> ID </th> <th> USERNAME </th> <th> LEVEL </th> <th> BLOK </th> <th> ACTION </th> </tr> </thead> <tbody> <?php $query = "SELECT * FROM users"; $result = mysql_query($query); $row = mysql_fetch_array($result); do { $id_user = $data["id_user"]; $username = $data["username"]; $password = $data["password"]; $level = $data["level"]; $blok = $data["blok"]; ?> <tr> <td class="text-center"> <?php echo $id_user; ?> </td> <td> <?php echo $username; ?> </td> <td class="text-center"> <?php echo $level; ?> </td> <td class="text-center"> <?php if($blok == "Y") { print "Yes"; } else { print "No"; } ;?> </td> <td class="text-center"> <a href="?page=update&user=<?php echo $id_user; ?>#edit-panitia" href="../../bootstrap/" role="button" data-toggle="modal"><i class="icon-edit"></i>Update</a> <a href="?page=delete&user=<?php echo $id_user; ?>"><i class="icon-trash"></i>Delete</a> </td> </tr> <?php } while($row = mysql_fetch_array($result)); ?> </tbody> </table>