|
Posted by Materialised on 04/13/06 10:48
I have written the following code as a test, (yes I know it is a
resource hog). Basically it pulls all images out of a MySQL table.
<?php
$conn = mysql_connect(host, user, pass);
mysql_select_db(testuser, $conn);
$query = "SELECT * FROM gallery";
$result = mysql_query($query, $conn);
echo "<table width=\"50%\" align=\"center\">";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>$row[NAME] <br> $row[DESC] </td>";
echo "<td><IMG SRC=\"data:image/jpeg;base64," .
base64_encode($row[IMG]) . "\"></td>";
}
echo "</table>";
mysql_close($conn);
?>
Now I don't know where my problem is, but, when viewed with firefox, the
images load correctly, however when viewed with Internet explorer, the
images do not load.
You can see a example of the script in action at
http://codegurus.org/~mwalker/test.php
Does anyone know why the images will not show up in IE correctly?
Navigation:
[Reply to this message]
|