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(h ost, user, pass);
mysql_select_db (testuser, $conn);
$query = "SELECT * FROM gallery";
$result = mysql_query($qu ery, $conn);
echo "<table width=\"50%\" align=\"center\ ">";
while($row = mysql_fetch_arr ay($result))
{
echo "<tr>";
echo "<td>$row[NAME] <br> $row[DESC] </td>";
echo "<td><IMG SRC=\"data:imag e/jpeg;base64," .
base64_encode($ row[IMG]) . "\"></td>";
}
echo "</table>";
mysql_close($co nn);
?>
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
Does anyone know why the images will not show up in IE correctly?
resource hog). Basically it pulls all images out of a MySQL table.
<?php
$conn = mysql_connect(h ost, user, pass);
mysql_select_db (testuser, $conn);
$query = "SELECT * FROM gallery";
$result = mysql_query($qu ery, $conn);
echo "<table width=\"50%\" align=\"center\ ">";
while($row = mysql_fetch_arr ay($result))
{
echo "<tr>";
echo "<td>$row[NAME] <br> $row[DESC] </td>";
echo "<td><IMG SRC=\"data:imag e/jpeg;base64," .
base64_encode($ row[IMG]) . "\"></td>";
}
echo "</table>";
mysql_close($co nn);
?>
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
Does anyone know why the images will not show up in IE correctly?
Comment