Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Display images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display images

 Post Reply Post Reply
Author
LeoV View Drop Down
Newbie
Newbie


Joined: 18 March 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeoV Quote  Post ReplyReply Direct Link To This Post Topic: Display images
    Posted: 19 March 2003 at 7:52am

I do have some problems when displaying images. I past the url for the image into an access database. What i want is display the image in a table.

But whatever i try i keep having problems with the image.

The  asp code is below:

<TABLE BORDER="1" cellspacing="1" cellpadding="10"%>

<%

'Loop through the recordset

Do While not rsVerfWereld.EOF

'Write the HTML to display the contents of the recordset

Response.Write ("<TR>")

Response.Write ("<TD>")

Response.Write (rsVerfWereld("Fabrikant"))

Response.Write ("</TD>")

Response.Write ("<TD>")

Response.Write (rsVerfWereld("P_naam"))

Response.Write ("</TD>")

Response.Write ("<td>")

Response.Write ("<img src="<%= rsVerfWereld("P_img") %>" >")

Response.Write ("</td>")

Response.Write ("</TR>")

'Move to the next record in the recordset

rsVerfWereld.MoveNext

Loop

%>

</TABLE>

Can somebody please help me with this code?? What am i doing wrong?? I keep getting errors..............

Thanx in adventage.

 

 

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2003 at 3:56pm
Not knowing what your errors are I take a wild guess. Try the following:
Response.Write ("<img src=""" & <%= rsVerfWereld("P_img") %> & """ >")
Back to Top
LeoV View Drop Down
Newbie
Newbie


Joined: 18 March 2003
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeoV Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2003 at 7:56am

Thanks for your support but the problem is still not fixed..:(

The error i now get is:

Soort fout:
Compilatiefout Microsoft VBScript (0x800A03EA)
Syntaxisfout
/Admin/display.asp, line 46, column 32
Response.Write ("<img src=""" & <%= rsVerfWereld("P_img")
-------------------------------^

Sorry for the dutch....

So, if someone still has some ideas, please...tell me

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2003 at 9:02am
The right syntax is:

Response.Write("<img src=""" & rsVerfWereld("P_img") & """ >")
Contribute to the working anarchy we fondly call the Internet
Back to Top
Morgan View Drop Down
Groupie
Groupie


Joined: 13 September 2002
Location: United States
Status: Offline
Points: 114
Post Options Post Options   Thanks (0) Thanks(0)   Quote Morgan Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2003 at 12:45am

OR...

<TABLE BORDER="1" cellspacing="1" cellpadding="10">
<%
'Loop through the recordset
Do While not rsVerfWereld.EOF
    'Write the HTML to display the contents of the recordset
%>

  <TR>
    <TD><% =rsVerfWereld("Fabrikant") %></TD>
    <TD><% =rsVerfWereld("P_naam") %></TD>
   
<TD><img src="<% =rsVerfWereld("P_img") %>" ></TD>
  </TR>

<%
    'Move to the next record in the recordset
    rsVerfWereld.MoveNext

Loop
%>

</TABLE>

Morgan
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.