Frank S
|
| Posted: 10/01/2002, 5:39 AM |
|
Hi Folks,
I know this has been discussed before but I can't seem to make this work
again. Have looked at the Bookstore Example and come up with this code.
Using CC, PHP, MySQL.
My image field is named "image1".
The "Before Show" code in Events is:
$fldimage1 = "<img src=\"http://domainname.com/images/tours/$fldimage1\"
width=\"320\" height=\"240\" border=\"1\">";
The path to the image is correct because the page is displaying the name of
the image, ie. getaway.jpg.
The field type is set to "label". In the form properties it is set as text
and html is checked.
Can anyone suggest what I might be missing?? I used this code in the past,
it works fine on that site. I can't seem to find the problem in this one.
Thanks in advance,
Frank
|
|
|
 |
Robert
|
| Posted: 10/05/2002, 11:38 PM |
|
make sure your label is actually named image1
I think this will work:
$fldimage1 = "<img src=\"http://domainname.com/images/tours/getaway.jpg\"
width=\"320\" height=\"240\" border=\"1\">";
|
|
|
 |
Robert
|
| Posted: 10/08/2002, 12:26 AM |
|
This just dawned on me I think this one will work?..
If the database column name is image1 (and the record is getaway.jpg), then make the image1 a hidden field, then makeup your own label and name it something like "imagelabel" (do all that before show and html stuff too)IE:
$fldimagelabel = "<img src=\"http://domainname.com/images/tours/$fldimage1\"
width=\"320\" height=\"240\" border=\"1\">";
Essentially you have 2 filds to make the one work(the one you made up and the actual one).
Hope this one works!
|
|
|
 |
|