Reply to Browser Issue

Your name:

Reply:


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?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация