If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP Database - File Paths to Images

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-07, 05:54
Rocky76 Rocky76 is offline
Registered User
 
Join Date: Oct 2007
Posts: 3
ASP Database - File Paths to Images

--------------------------------------------------------------------------------

Last edited by Rocky76; 11-01-07 at 09:48.
Reply With Quote
  #2 (permalink)  
Old 10-29-07, 10:18
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Can you provide us with the current ASP code for displaying the picture?
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 10-30-07, 05:29
Rocky76 Rocky76 is offline
Registered User
 
Join Date: Oct 2007
Posts: 3
Code for ASP Scripting

-------------------------------------

Last edited by Rocky76; 11-01-07 at 09:48.
Reply With Quote
  #4 (permalink)  
Old 10-30-07, 06:54
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Run this for me
Code:
Do While Not rs.EOF
	Response.Write rs("main-img")
	rs.MoveNext
Loop
I think the div is what is causing your issue, this should just prove that you're returning the correct data for each record.

You can then move on to
Code:
Do While Not rs.EOF
	Response.Write "<img src='" & rs("main-img") & "' /><br />"
	rs.MoveNext
Loop
__________________
George
Twitter | Blog
Reply With Quote
  #5 (permalink)  
Old 10-30-07, 11:33
Rocky76 Rocky76 is offline
Registered User
 
Join Date: Oct 2007
Posts: 3
-----------------------------

Last edited by Rocky76; 11-01-07 at 09:49.
Reply With Quote
  #6 (permalink)  
Old 10-30-07, 14:42
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Interesting...
So waht you're saying is that you've changed some field values in your Access database that are not being reflected in the records being retrieved by your ASP page..?

Open your access database and run a compact and repair (under the tools menu somewhere). Then try again.

Another thing to note is that you are not closing your recordset object!!!

After you're done with the recordset add this code
Code:
rs.Close
Set rs = Nothing
Another thing to note is to never use the asteriks (*) in your SQL statements!
It may take longer to write out each column header, but it will be well worth it for more reasons than I'm willing to go into right now.
Code:
rs.Open "SELECT * FROM tblcar", conn
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On