Hey folks,
I have a weblog application at - code is available if anywone wants it.
I recently updated the way it builds an XML file so that rather than build it everytime it was requested, it is now only built when I edit or create content.
Note that after both the insert and update are executed I call buildxml.asp to recreate the XML file. Well, that's the plan, but it fails on the insert without returning an error.
I have changed the code to execute a non existing page and it breaks so I know I am hitting the spot.
The only thing I can think of is that the db isn't updated by the time I call buildxml.asp. Is this likely the problem? If so, short of looping for 1/2 a second as a time waster, is there another solution.
What else might be causing this?
Thanks in advance.
Steve Davis
hey.you@hahaha.com.au
Me? I can't even spell ASP!
I have a weblog application at - code is available if anywone wants it.
I recently updated the way it builds an XML file so that rather than build it everytime it was requested, it is now only built when I edit or create content.
Code:
if request.querystring("action") = "add" then
MM_editQuery = "insert into blog (content,title,description,stickynote) values ('" & editorvalue & "','" & newtitle & "','" & newdescription & "',off)"
'on error resume next
edittxt = MM_editquery
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
[b]server.execute("buildxml.asp")[/b]
elseif request.querystring("action") = "update" then
MM_EditQuery = "update blog set content='" & editorvalue & "', title='" & newtitle & "', description = '" & newdescription & "', stickynote = " & stickynote & " where ID = " & request.form("ID")
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
[b]server.execute("buildxml.asp")[/b]
end if
Note that after both the insert and update are executed I call buildxml.asp to recreate the XML file. Well, that's the plan, but it fails on the insert without returning an error.
I have changed the code to execute a non existing page and it breaks so I know I am hitting the spot.
The only thing I can think of is that the db isn't updated by the time I call buildxml.asp. Is this likely the problem? If so, short of looping for 1/2 a second as a time waster, is there another solution.
What else might be causing this?
Thanks in advance.
Steve Davis
hey.you@hahaha.com.au
Me? I can't even spell ASP!