I want to call a website and embed it into a table cell. I have no problem getting the request for the site or the url from the database. But when I embed it, it jumbles it and puts it all over the place or doesn't open the entire page.
I have:
$remote = fopen("http://www.theothersite.com/list.php", "r");
fpassthru($remote);
Are there any other cleaner solutions?
iframe shows up blank:
echo '<iframe src="'.$row[$url].'" width="100%" />';
$url = 'URL';
$tag = 'Tag';
$id = 'P_Id';
$query = "SELECT * FROM web_db WHERE Tag = '" . $userTag . "' ORDER BY RAND() LIMIT 1";
$result = mysql_query($query);
if($result)
{
while($row = mysql_fetch_array($result))
{
echo 'ID:' . $row[$id] . '<br>';
echo 'URL: ' . $row[$url] . '<br>';
echo 'Tag:' . $row[$tag] . '<p>';
// $remote = fopen($row[$url],"r");
// fpassthru($remote);
echo '<iframe src="'.$row[$url].'" width="100%" />';