#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    17
    Rep Power
    0

    Microsoft VBScript compilation - Expected end of statement


    Hi,

    Please can anyone give me idea how to fix the following code and

    where is wrong?

    Thanks in advanced.

    <% response.write rs("Artistic_Field_Film")
    If(rs("Artistic_Field_Literary_Arts")) <> "" then response.Write "," & rs("Artistic_Field_Literary_Arts")
    If(rs("Artistic_Field_Dance")) <> "" then response.Write "," & rs("Artistic_Field_Dance")
    If(rs("Artistic_Field_Music")) <> "" then response.Write "," & rs("Artistic_Field_Music")
    If(rs("Artistic_Field_Theatre")) <> "" then response.Write "," & rs("Artistic_Field_Theatre")
    If(rs("Artistic_Field_Visual_Arts")) <> "" then response.Write "," & rs("Artistic_Field_Visual_Arts")
    If(rs("Artistic_Field_Others")) <> "" then response.Write "," & rs("Artistic_Field_Others"), "") %>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    101
    Rep Power
    9
    line
    Code:
    If(rs("Artistic_Field_Others")) <> "" then response.Write "," & rs("Artistic_Field_Others"), "") %>
    should be

    Code:
    If(rs("Artistic_Field_Others")) <> "" then response.Write "," & rs("Artistic_Field_Others") %>

IMN logo majestic logo threadwatch logo seochat tools logo