title: How To Display a random row from database on button click?
body: <p>I'm a beginner, and I want to know how to display a random row from database On <code>BootstrapButton</code> Click.</p>
  
  <p>here's my code:</p>
  
  <pre><code>&lt;h3 id="myHeader"&gt;Press the button below to display a name&lt;/h3&gt;
  
          &lt;script&gt;
      function displayResult() {
          document.getElementById("myHeader").innerHTML =&lt;?php $row["Name"] ?&gt;;
      }
      &lt;/script&gt;
  
      &lt;button type="button" class="btn btn-primary" onclick="displayResult()"&gt;Another One&lt;/button&gt;
  </code></pre>