Based on your first sentence, I think your issue is something entirely
different.
I think you're lost on handling these images.
Are you trying to call somepage.php and show both images from the
database at the same time? If so, you're on the wrong path, friend.
You see, images are files. They're not things you can just throw in
with the HTML. They have to have the right headers and everything to
display properly. What you should do first is get a separate image.php
or something to work right by itself and then start including that in
an image tag on your main page.
Second, you're not looping through the results. You're only calling
the very first row. If you want to loop, you should do something like:
require("connect.php");
$result = mysql_query("select * from tblImg order by id DESC",$link)
or die(mysql_error());
while($i = mysql_fetch_assoc($result)) {
# $i now contains the database info
}
--
Jack Timmons
@_Codeacula