This topic is locked

Readonly Photos

3/7/2009 12:09:58 AM
PHPRunner General questions
N
nzmark author

Does anybody know how I can display an image or thumb that is stored in the database as a blob, on a form as read only.
The option in the visual editor does not include a READONLY function for images.
Any help would be appreciated.

J
Jane 3/10/2009

Mark,
use custom event (Insert PHP code snippet option on theVisual Editor tab) for this purpose.

Here is a sample code:

if (@$_REQUEST["editid1"])

echo "<img src=\"tablename_imager.php?field=FieldName&key1=".

$_REQUEST["editid1"]."\">";