Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Posts
    3

    Unanswered: ASP Database - File Paths to Images

    --------------------------------------------------------------------------------
    Last edited by Rocky76; 11-01-07 at 10:48.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Can you provide us with the current ASP code for displaying the picture?
    George
    Home | Blog

  3. #3
    Join Date
    Oct 2007
    Posts
    3

    Code for ASP Scripting

    -------------------------------------
    Last edited by Rocky76; 11-01-07 at 10:48.

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    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
    Home | Blog

  5. #5
    Join Date
    Oct 2007
    Posts
    3
    -----------------------------
    Last edited by Rocky76; 11-01-07 at 10:49.

  6. #6
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    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
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •