Hi all
below is a function that works to print out one image and my attempt to duplicate it in such a way that i can print multiple images the echo statement is in a loop and i don't know what the header("...") stuff is for but it was in the function is stole this code from
[PHP]
if ($_REQUEST[gim] == 1) {
header("Content-type: image/jpeg"); //don't know what this does
print $bytes; // bytes has the imgdata from one image stored in it
exit ();
}
//and in the body of the page
<img src=?gim=1 width=144>
[/PHP]
and here is my attempt this is in a loop
[PHP]
echo '<img src=" 'header("Conten t-type: image/jpeg"); $row[imgdata];' " '>
[/PHP]
thanks for input
eric
below is a function that works to print out one image and my attempt to duplicate it in such a way that i can print multiple images the echo statement is in a loop and i don't know what the header("...") stuff is for but it was in the function is stole this code from
[PHP]
if ($_REQUEST[gim] == 1) {
header("Content-type: image/jpeg"); //don't know what this does
print $bytes; // bytes has the imgdata from one image stored in it
exit ();
}
//and in the body of the page
<img src=?gim=1 width=144>
[/PHP]
and here is my attempt this is in a loop
[PHP]
echo '<img src=" 'header("Conten t-type: image/jpeg"); $row[imgdata];' " '>
[/PHP]
thanks for input
eric
Comment