Results 1 to 6 of 6

Thread: help with this syntax

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    254

    help with this syntax

    guys i need your here pls tell me what is wrong with this statement

    My Picture column contain this picture\upload\123.gif

    VB Code:
    1. path=rs.fields(picture)
    2.  
    3. server.mappath(path)//error line

    if i do the above code i will get a type mismatch error

    VB Code:
    1. path="picture\upload\123.gif"
    2.  
    3. server.mappath(path)

    but if i do this then every thing turns out fine...

    What is wrong with this!??

    Akababy.Net... Life Redefined!

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    try this:

    Code:
    path=rs.fields("picture")
    
    server.mappath(path)//error line
    or:

    Code:
    path=rs("picture")
    
    server.mappath(path)//error line

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    254
    still the same type mismatch error

    Akababy.Net... Life Redefined!

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    254
    the continue to this post can be found here

    http://www.vbforums.com/showthread.p...0&pagenumber=2

    Akababy.Net... Life Redefined!

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    What do you get with a Response.Write of the rs.fields("Picture")
    ?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Singapore
    Posts
    254
    u can follow the link that i put in the previous post to take alook

    Akababy.Net... Life Redefined!

Posting Permissions

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



Click Here to Expand Forum to Full Width