Re: I need the PHP code to display in the proper place in a table
I have never used longblog.. but from what I read.. it is binary value... and to display an image in HTML you are going to need a text string.. I would just alter the database with:
ALTER TABLE tableName DROP COLUMN imageColumn
and
ALTER TABLE tableName ADD imageColumn TEXT NOT NULL
then you will start storing the images as strings relating to their location/filename..
ie) "img/image1.jpg"
Then retrieve that data from the db in your mysql_fetch_array loop,
$img = $row[imageColumn];
and then enter it into the appropriate place in your code:
print "<img src='".$img."' />
|