ok i am lost the code is as follwo..
<?php
// Connect to the database server
$dbcnx = @mysql_connect(asdfasdfasdfasdfasdf);
if (!$dbcnx) {
exit('<p>Unable to connect to the ' .
'database server at this time.</p>');
}
// Select the image database
if (!@mysql_select_db('dbnation')) {
exit('<p>Unable to locate the image' .
'database at this time.</p>');
}
// Request the text of all the image
$result = @('SELECT * FROM ae_gallery');
if (!$result) {
exit('<p>Error performing query: ' . mysql_error() . '</p>');
}
// Display the text of each image in a paragraph
$images = array();
while($r = mysql_fetch_assoc($result))
array_push($images, $r);
header('Content Type: image/jpeg'); # NOT TOTALLY SURE IF THIS WILL WORK FOR ABSOLUTELY EVERY IMAGE i havent tested doing this by binary data before. normally i just store the file in a directory for albums and do echo '<img src="{$im['id']}" />';
foreach($images as $im)
echo $im['data'];
?>
when i echo im['data']; i get one image any thing else, it will not display no image.