Error when putting database field in a script link

Discussion in 'C#' started by bacwebdesign, Sep 2, 2007.

  1. #1
    I have a site where I am trying to display the upcoming weather on a detailed listing page. The weather display is based on a link from Accuweather.com. The zip code is housed in a field called "pUPC".

    The script is as followed:

    <script src='http://netweather.accuweather.com/adcbin/netweather_v2/
    netweatherV2.asp?partner=netweather&tStyle=whteYell&logo=0&
    zipcode=01906&lang=eng&size=10&theme=&metric=0&target=_self'></script>


    Where is says "zipcode=01906" I want to replace 01906 with the "pUPC" field. How do I do this without getting an error message?
     
    bacwebdesign, Sep 2, 2007 IP
  2. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is the error that you are getting. you should be able to use the database field at the required point and create the script.
     
    urstop, Dec 10, 2007 IP