How to pass GET value to bootstrap modal
<p>i have a bootstrap modal and am trying to pass a unique value through GET to the modal but the modal keeps getting the same unique value instead of the value of the table row i clicked. Been struggling with this for days and cant seem to figure out why it's not working. The code is below</p>

<pre><code>&lt;?php
    $sql = "SELECT * FROM houses"; 
    $q=$conn-&gt;query($sql);
   while ($row = mysqli_fetch_array($q)) {
?&gt;
&lt;tr&gt;
    &lt;td&gt;&lt;?php echo $row['nickname']; ?&gt;&lt;/td&gt;
    &lt;td&gt;&lt;?php echo $row['state']; ?&gt;&lt;/td&gt;
    &lt;td&gt;&lt;?php echo $row['city']; ?&gt;&lt;/td&gt;
    &lt;td&gt;&lt;?php echo $row['address']; ?&gt;&lt;/td&gt;
    &lt;td&gt;    
        &lt;div class="btn-group"&gt;
            &lt;a class="btn btn-success" href="view_property.php?house=&lt;?php echo $row['nickname']; ?&gt;"&gt;&lt;i class="icon_check_alt2"&gt;&lt;/i&gt;&lt;/a&gt;
            &lt;a class="btn btn-primary" href="edit_property.php?house=&lt;?php echo $row['nickname']; ?&gt;"&gt;&lt;i class="icon_plus_alt2"&gt;&lt;/i&gt;&lt;/a&gt;
            &lt;a class="btn btn-danger"  data-toggle="modal" data-target="#myDelete"&gt;&lt;i class="icon_close_alt2"&gt;&lt;/i&gt;&lt;/a&gt;
        &lt;/div&gt;
        &lt;div id="myDelete" class="modal fade" role="dialog"&gt;
            &lt;div class="modal-dialog"&gt;
            &lt;!-- Modal content--&gt;
                &lt;div class="modal-content"&gt;
                    &lt;div class="modal-header"&gt;
                        &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                        &lt;h4 class="modal-title"&gt;Delete Property&lt;/h4&gt;
                    &lt;/div&gt;
                    &lt;div class="modal-body"&gt;
                        &lt;p&gt;Are you sure you want to pull out this property from your list of Properties, as all data regarding this property will be lost permanently &lt;?php echo $row['nickname']; ?&gt;&lt;/p&gt;
                    &lt;/div&gt;
                    &lt;div class="modal-footer"&gt;
                        &lt;a class="btn btn-success" href="view_property.php?house=&lt;?php echo $row['nickname']; ?&gt;"&gt;Delete&lt;/a&gt;
                        &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Cancel&lt;/button&gt;
                    &lt;/div&gt;
                &lt;/div&gt;    
            &lt;/div&gt;
        &lt;/div&gt;
&lt;/td&gt;
</code></pre>