hallo mensen ik heb dit script
[script]
strcontent=replace(request.form("content"),chr(34),"'")
strcontent=replace(strcontent,"%",chr(37))
response.write strcontent
set conntemp=server.createobject("adodb.connection")
cnpath="DBQ=" & strdb
conntemp.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & cnpath
rs=("UPDATE subs SET [subname ]= '" & request.form("subname") & "', [header] = '" & request.form("header") & "',[content] = '" & strcontent & "', [footer] = '" & request.form("footer") & "' WHERE ID="& request.querystring("subid") &"")
conntemp.execute(rs)
response.redirect "cm.asp?msg=Bedankt+voor+het+veranderen+van+de+content!"
[/script]
als ik dit in het veld content doe :
<TABLE id=AutoNumber1 style="BORDER-COLLAPSE: collapse" borderColor=#111111
height=191 cellSpacing=0 cellPadding=0 width=179 border=1>
<TBODY>
<TR>
<TD width=179 bgColor=#008000 height=53>sasd</TD></TR>
<TR>
<TD width=179 bgColor=#ff00ff height=134>sadasd</TD></TR></TBODY></TABLE>
krijg ik deze fout:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''<TABLE id=AutoNumber1 style='BORDER-COLLAPSE: collapse' borderColor=#111111 height=191 cellSpacing=0 cellPadding=0 width=179 border=1> <TBODY> <TR> <TD width=179 bgColor=#008000 height=53>sasd</TD></TR> <TR> <TD width=179 bgColor=#ff00ff height=134>sad'.
kep al veel geprobeerd maar kan niets vinden qua fouten,
ik hoop dat jullie mij kunnen helpen.
Greets woodie
[script]
strcontent=replace(request.form("content"),chr(34),"'")
strcontent=replace(strcontent,"%",chr(37))
response.write strcontent
set conntemp=server.createobject("adodb.connection")
cnpath="DBQ=" & strdb
conntemp.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & cnpath
rs=("UPDATE subs SET [subname ]= '" & request.form("subname") & "', [header] = '" & request.form("header") & "',[content] = '" & strcontent & "', [footer] = '" & request.form("footer") & "' WHERE ID="& request.querystring("subid") &"")
conntemp.execute(rs)
response.redirect "cm.asp?msg=Bedankt+voor+het+veranderen+van+de+content!"
[/script]
als ik dit in het veld content doe :
<TABLE id=AutoNumber1 style="BORDER-COLLAPSE: collapse" borderColor=#111111
height=191 cellSpacing=0 cellPadding=0 width=179 border=1>
<TBODY>
<TR>
<TD width=179 bgColor=#008000 height=53>sasd</TD></TR>
<TR>
<TD width=179 bgColor=#ff00ff height=134>sadasd</TD></TR></TBODY></TABLE>
krijg ik deze fout:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''<TABLE id=AutoNumber1 style='BORDER-COLLAPSE: collapse' borderColor=#111111 height=191 cellSpacing=0 cellPadding=0 width=179 border=1> <TBODY> <TR> <TD width=179 bgColor=#008000 height=53>sasd</TD></TR> <TR> <TD width=179 bgColor=#ff00ff height=134>sad'.
kep al veel geprobeerd maar kan niets vinden qua fouten,
ik hoop dat jullie mij kunnen helpen.
Greets woodie