I saved a JPEG-Image to a String-column in a MYSQL-Database.
Now I want a nice form for the output in a HTML-Code.
Until now I read out some text and write it to a table. In the same table I want to place the image.
for ($i=0; $i<mysql_num_rows ($result); $i++) {
$row = mysql_fetch_object ($result)
print("<table border=0 cellspacing=1 cellpadding=1 width=660><tr><td>");
printf("<p class='ueber'>%s</p>",$row->Ueberschrift);
printf("<p class='fliesstext'>%s</p></td>\n",$row->Textteil);
printf("<td> /* here I want to insert the image */</td>\n",$row->Bild);
print("</tr>\n</table>\n");
}
the manual suggests <IMG SRC='makeimg.php?args=make_img_args'> but that does not convince me, because I have to open a new database connection, search the right row and so on. Does anybody have a better idea?
Thanx for your help!