iframe source problem with Safari
<p>I have a problem with Safari</p>

<p>Whenever the source of the iframe changes the new source is not displayed it instead shown as a download file.</p>

<p>Here is a sample of the code:</p>

<pre><code>&lt;?php echo "&lt;iframe id='myframe' width='600' height='200' src='image3.php?id=$content'  style='margin-left:25; background-color:#ffffff'&gt;&lt;/iframe&gt;";?&gt;
</code></pre>

<p>and in JS:</p>

<pre><code>function refreshConsole() {
var url = "image3.php?id=&lt;?php echo $content; ?&gt;";

document.getElementById("myframe").src=url;
setInterval("refreshConsole()", 15000);
}
$(document).ready(function() {
refreshConsole();
});
</code></pre>

<p>It works fine with FireFox and Chrome but not in Safari.Is the problem with code or with the browser</p>

<p>Editted:</p>

<p>Here is image3 file</p>

<pre><code>&lt;?php
require("db.php");
db_connect();
$id=addslashes($_REQUEST['id']);
$image3=mysql_query("select * from image where id=$id");
$image2=mysql_fetch_array($image3);
$content2=$image2['image'];
header('Content-type: image/jpg');
echo $content2;
?&gt;
</code></pre>
