title: Displaying youtube video from mysql database using php?
body: <p>I want to display youtube video on a page, the following is my code in order to fetch youtube video URL from the database stored in mysql and then display it by iterating using while loop. However, the iframe does not display any video inside it.</p>
  
  <pre><code>&lt;?php
     if ($get_result != false) {
         while ($row = mysqli_fetch_array($get_result, MYSQLI_ASSOC)) {
  ?&gt;
            &lt;iframe width="560" height="315" src="&lt;?php echo $row["url"]; ?&gt;" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
  &lt;?php
         }
     }
  ?&gt;
  </code></pre>
  
  <p>I have also tried using video tag inside while loop but it does not display the Youtube video inside the video player.
  Please help me to solve this issue.</p>