mercredi 25 février 2015

Print all iframe buttons from sql name

In table Facebook I have column name. In column name I have facebook name pages. How to print all facebook iframe buttons.



<?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 '<iframe src="http://ift.tt/HVwOiy echo "http://ift.tt/17ykDLB['name']"; ?>&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:35px;" allowTransparency="true"></iframe>';
}
?>

Aucun commentaire:

Enregistrer un commentaire