this is my modal button
this is within the table that why i use echo $rows['id']
<a data-id="<?php echo $rows['id']; ?>" type="button" class="btn btn-success btn-lg btn-block" data-toggle="modal" data-target="#myModal">View Order</a>
this is my modal body
<?php
include('../conn.php');
$id=$_GET['id'];
$list_query=mysql_query("select * from db where id='$id'");
$rows=mysql_fetch_array($list_query);
?>
<form class="form-horizontal orderitem" role="form">
<div class="form-group">
<label for="inputFullName" class="col-sm-2 control-label">Full Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="fullname" value="<?php echo $rows['id']; ?>">
</div>
</div>
</div>
</form>