Mac OSX 10.5.8
4D v 2004.7 build 3
A4D 4.5r1
Dreamweaver CS5
I am now trying to get an image from the database.
I have used the following:
<%
$qry := build query string(""; "img_field"; "[PuzzleImages]web_image";
\\
"qry_field"; "PuzzleInt"; \\
"qry_value"; "6756"; \\
"size"; 120)
%>
<img src="/image.a4d<%=$qry%>" alt="image" />
web_image is a picture field
PuzzleInt is an Alpha field
The image is not showing up. The Page source shows:
<img src="/image.a4d?img_field=%5BPuzzleImages
%5Dweb_image;qry_field=PuzzleInt;qry_value=6756;size=120" alt="image" />
Then I created an LongInt ID field and used:
$qry := build query string(""; "img_field"; "[PuzzleImages]web_image";
\\
"qry_field"; "ID"; \\
"qry_value"; 6756; \\
"size"; 120)
Which worked ... how did I mess up the attempt using an Alpha field
Thanks
Mike Goldsmith
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/