Hejsan, förlåt om jag besvärar er med mina syntax error men jag hittar tyvärr inte felet på den här:
<!-- #include file="adovbs.inc" -->
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "Driver={MySQL ODBC 3.51 Driver};server=localhost;uid=XXX;pwd=XXX;database=creative"
Set RecSet = Server.CreateObject("ADODB.Recordset")
dim struserID, strName, strTopic, strText, strDate, strIP, strGame
struserID = Request.Form("userID")
strname = Request.Form("name")
strtopic = Request.Form("topic")
strtext = Request.Form("text")
strIP = Request.ServerVariables("REMOTE_ADDR")
strdate = Year(Now) &"-"& Month(Now) &"-"& Day(Now) &" "& Hour(Now) &":"& Minute(Now) &":"& Second(Now)
strgame = Request.Form("game")
sql = " insert into news(userID, Name, Topic, Text, Date, IP, Game)" &_
" " & " VALUES (" &_
"'" & struserID & "', " &_
"'" & strName & "', " &_
"'" & strTopic & "', " &_
"'" & strText & "', " &_
"'" & strDate & "', " &_
"'" & strIP & "', " &_
"'" & strGame & "') "
Connect.Execute sql,,128
Response.Redirect("../admin.asp?go=cs&add=news")
%>
Feltyp:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[MySQL][ODBC 3.51 Driver][mysqld-3.23.55-nt]You have an error in your SQL syntax near 'igt utan buggar, ska dock lägga till så det går att redigera och skriva kommenta' at line 1
/creative/admin/addnews.asp, line 25
Tack på förhand
//Jonas "Mellow" Stenberg