Outputtet ser således ud: INSERT INTO 'freeware'('title','appl','authors','cat','subcat','authorswebsite','about','by','added','accept')VALUES(,'aaaaaa','aaaaaa','aaaaaa','internet','','asaaaa','aaaaaa','FREEWARE patrol','5/27/2004','Nej');
Jeg får ingen fejlmeddelser men den opdatere ikke MySQL DB'en...
Er der en forglemmelse et sted eller en fejl i koden ???
Ved at sætte koden som du viser strSQL = "INSERT INTO `freeware` (`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)" får jeg følgende fejl.... Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/add.asp, line 264
strSQL = "INSERT INTO `freeware` --------------------------------^
Når den står sådan her: strSQL = "INSERT INTO `freeware`(`title`,`appl`,`authors`,`cat`, `subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)" Kommer der ikke noget ind i DB'en....
Der er da et eller andet i vejen i den her linie: strSQL = strSQL & "VALUES(,'"&Request.form("title")&"','"&Request.form("appurl")&"','"&Request.form("author")&"','"&Request.form("txtCat")&"','"&Request.form("txtSubCat")&"','"&Request.form("authorurl")&"','"&Request.form("description")&"','"&Request.form("rb")&"','"&date&"','"&ofc&"');"
Du har et komma for meget i starten.. strSQL = strSQL & "VALUES('"&Request.form("title")&"','"&Request.form("appurl")&"','"&Request.form("author")&"','"&Request.form("txtCat")&"','"&Request.form("txtSubCat")&"','"&Request.form("authorurl")&"','"&Request.form("description")&"','"&Request.form("rb")&"','"&date&"','"&ofc&"');"
Den er fjernet nu... Men det ændre ikke resultatet :o( Sådan ser outputtet ud nu: INSERT INTO `freeware`(`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)VALUES(sssssss,ssssssss,ssssssss,chat,client,ssssssss,sdsssdsds,FREEWARE patrol,27-05-2004,Nej);
INSERT INTO `freeware`(`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)VALUES(sssssss,ssssssss,ssssssss,chat,client,ssssssss,sdsssdsds,FREEWARE patrol,27-05-2004,Nej);
og
INSERT INTO `freeware`(`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)VALUES(`sssssss`,`ssssssss`,`ssssssss`,`chat`,`client`,`ssssssss`,`sdsssdsds`,`FREEWARE patrol`,`27-05-2004`,`Nej`);
og
INSERT INTO `freeware`(`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)VALUES('sssssss','ssssssss','ssssssss','chat','client','ssssssss','sdsssdsds','FREEWARE patrol','27-05-2004','Ja');
den her vil jeg mene du skal bruge.. INSERT INTO `freeware`(`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)VALUES('sssssss','ssssssss','ssssssss','chat','client','ssssssss','sdsssdsds','FREEWARE patrol','27-05-2004','Ja');
INSERT INTO `freeware`(`id`,`title`,`appl`,`authors`,`cat`,`subcat`,`authorswebsite`,`about`,`by`,`added`,`accept`)VALUES('','sssssss','ssssssss','ssssssss','chat','client','ssssssss','sdsssdsds','FREEWARE patrol','27-05-2004','Nej');
Ingen error eller anden form for fejl.... Men den vil simpelt hen ikke opdatere DB'en
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.