|
 |
access_asp thread: Displaying Photos
Message #1 by "Stephen Proctor" <steveproctor@c...> on Sun, 28 Oct 2001 02:12:20
|
|
I used the Filter program in Beginning ASP. But I tried to modify it so
that it shows photos using the following code. The problem is that the
photos "stack", i.e., all the photos show then the table data displays. I
want to display a photo then the applicable date, photo - data, etc. (or
the opposite is OK, data-photo, data-photo). I can't figure out what's
wrong in the code below. It seems it should display only one record and
then display the applicable photo. Any ideas? Thanks.
Steve
Response.Write "<h2>LIST IN ALPHABETICAL ORDER</h2>" & "<table border
= 1>" & _
"<tr><td><b>Initials</b></td>" & _
"<td><b>Last Name</b></td>" & _
"<td><b>First Name</b></td>" & _
"<td><b>First Field</b></td>" & _
"<td><b>Second Field</b></td>" & _
"<td><b>Third Field</b></td>" & _
"</tr>"
While Not objRS.EOF
Response.Write "<tr><img src=images/" & _
objRS("Initials") & _
".jpg>" & _
"<td>" & objRS("LastName") & "</td>" & _
"<td>" & objRS("FirstName") & "</td>" & _
"<td>" & objRS("FirstField") & "</td>" & _
"<td>" & objRS("SecondField") & "</td>" & _
"<td>" & objRS("ThirdField") & "</td>" & _
"</tr>"
objRS.MoveNext
Wend
Response.Write "</table>"
Message #2 by "Mary Mish" <mmish@m...> on Mon, 29 Oct 2001 00:33:38
|
|
you missed a <td> infront of <img
Mary
> I used the Filter program in Beginning ASP. But I tried to modify it so
> that it shows photos using the following code. The problem is that the
> photos "stack", i.e., all the photos show then the table data displays.
I
> want to display a photo then the applicable date, photo - data, etc. (or
> the opposite is OK, data-photo, data-photo). I can't figure out what's
> wrong in the code below. It seems it should display only one record and
> then display the applicable photo. Any ideas? Thanks.
>
> Steve
>
> Response.Write "<h2>LIST IN ALPHABETICAL ORDER</h2>" & "<table
border
> = 1>" & _
> "<tr><td><b>Initials</b></td>" & _
> "<td><b>Last Name</b></td>" & _
> "<td><b>First Name</b></td>" & _
> "<td><b>First Field</b></td>" & _
> "<td><b>Second Field</b></td>" & _
> "<td><b>Third Field</b></td>" & _
>
>
> "</tr>"
> While Not objRS.EOF
>
> Response.Write "<tr><img src=images/" & _
> objRS("Initials") & _
> ".jpg>" & _
>
> "<td>" & objRS("LastName") & "</td>" & _
> "<td>" & objRS("FirstName") & "</td>" & _
> "<td>" & objRS("FirstField") & "</td>" & _
> "<td>" & objRS("SecondField") & "</td>" & _
> "<td>" & objRS("ThirdField") & "</td>" & _
>
>
> "</tr>"
>
> objRS.MoveNext
> Wend
> Response.Write "</table>"
|
|
 |