I am trying to use iFrame to dispaly some random videos. The links are stored in a database so i am using a loop to get them and use them as source for iFrame. When i just print out the url's it works fine they all appear, but when I try to add them as src for iFrame it wont appear. I get an empty box.
$loop = mysql_query("SELECT * FROM video") or die (mysql_error());
while ($row = mysql_fetch_array($loop)) {
$tmp = $row['videos'];
//echo $tmp;
?>
<iframe width="420" height="315" src="<?php echo $tmp; ?>" ></iframe>
<?php
}
?>