title: Print all iframe buttons from sql name
body: <p>In the table 'Facebook' I have 1 column, 'name'. In the column 'name' I have Facebook name pages. How do I print all the Facebook iframe buttons?</p>
  
  <pre><code>&lt;?php
      $db_host = 'localhost';
      $db_user = '';
      $db_pass = '';
      $db_name = '';
      $db = mysqli_connect($db_host, $db_user, $db_pass, $db_name);
  
  $result=mysqli_query($db, "SELECT * FROM Facebook");
  while($row = mysqli_fetch_array($result)){
  echo '&lt;iframe src="http://www.facebook.com/plugins/like.php?href=&lt;?php echo "http://www.facebook.com/$row['name']"; ?&gt;&amp;amp;width&amp;amp;layout=button_count&amp;amp;action=like&amp;amp;show_faces=false&amp;amp;share=false&amp;amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"&gt;&lt;/iframe&gt;';
  }
  ?&gt;
  </code></pre>