Hello,
I have an asp page, that builds an xml file.
I would like to insert an if statement but it does not seem to be working. I am not really sure what i am doing wrong
any help is always appreciated!!!
Here is my code
I tried to insert
after mo=
but that is not really working
I have an asp page, that builds an xml file.
I would like to insert an if statement but it does not seem to be working. I am not really sure what i am doing wrong
any help is always appreciated!!!
Here is my code
Code:
mo = rs("mo")
dddpva = rs("dddpva")
act.WriteLine"<item month=""" & mo & """ value= """ & dddpva & """/>"
& vbcrlf
' move to the next record
rs.movenext
loop
' All non repetitive xml on bottom goes here
act.WriteLine("</items>")
' close the object (xml)
act.close
' Writes a link to the newly created xml document in the browser
response.write "<a href='rev.xml'>revenue</a> (.xml) has been
created <br>"
response.write "on " & now() & "<br>"
%>
I tried to insert
Code:
<% if rs("mo").value = 1 then response.write "January" end if%>
but that is not really working