title: How can I get data from this HTML to query in SQL?
body: <p>This is the button used to send the data</p>
  
  <pre><code>  &lt;a href="#myModal" data-toggle="modal" id="78" data-target="#edit-modal"&gt; &lt;button type="button"   &gt;
      &lt;i class="glyphicon glyphicon-zoom-in"&gt;&lt;/i&gt;
      &lt;/button&gt;&lt;/a&gt; 
  </code></pre>
  
  <p>This code shows the data</p>
  
  <pre><code> &lt;?php  echo  $er="&lt;div class=\"modal-body edit-content\"&gt;&lt;/div&gt;";  ?&gt;
  </code></pre>
  
  <p>I want <code>$er</code> to query in below </p>
  
  <pre><code>&lt;?php       
  $str = "SELECT * FROM examquestion WHERE EQ_ID = '$er' ";
  $Recordset7 = mysql_query($str) or die(mysql_error());
  $row_Recordset7 = mysql_fetch_assoc($Recordset7);
  
  echo $row_Recordset7['EQ_ID']; ?&gt;
  </code></pre>
  
  <p>script</p>
  
  <pre><code>&lt;script&gt;
          $('#edit-modal').on('show.bs.modal', function(e) {
  
              var $modal = $(this),
                  Id = e.relatedTarget.id;
  
                      $modal.find('.edit-content').html(Id);
  
  
          })
      &lt;/script&gt;
  </code></pre>