Display an image
| From: | John Taylor-Johnston | Date: | Sat, 13 Nov 2004 05:28:45 +0000 |
| Subject: | Display an image | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201889@lists.php.net to get a copy of this message | ||
I have a longblob with a jpeg loaded in it. But how do I display it?
photo longblob NOT NULL,
This doesn't work :) I need header information, etc. So what does?
echo "<img src=".$mydata2->photo.">\n";
I don't have an example to work with.
John
----------snip-------------
$sql2 = "select * from ".$db.".".$table";
$news2 = mysql_query($sql2);
echo "<img src=".$mydata2->photo.">\n";
echo "<h3>$mydata2->Rank $mydata2->Name</h3>\n";
echo "<small><i>$mydata2->biography</i></small>\n";
}