Bosse wrote in dk.edb.internet.webdesign.serverside.asp:
<klip>
> strSQL = "INSERT INTO Products( "
> strSQL = strSQL & "product_order,"
> strSQL = strSQL & "product_id,"
> strSQL = strSQL & "product_name,"
> strSQL = strSQL & "product_price,"
> strSQL = strSQL & "product_picture,"
> strSQL = strSQL & "product_category,"
> strSQL = strSQL & "product_briefdesc,"
> strSQL = strSQL & "product_fulldesc,"
> strSQL = strSQL & "product_status)"
> strSQL = strSQL & "VALUES('"
> strSQL = strSQL &" " & Request.Form("product_order") & ","
> strSQL = strSQL &" " & Request.Form("product_id") & ","
> strSQL = strSQL &" " & Request.Form("product_name") & ","
> strSQL = strSQL &" " & Request.Form("product_price") & ","
> strSQL = strSQL &" " & Request.Form("product_picture") & ","
> strSQL = strSQL &" " & Request.Form("product_category") & ","
> strSQL = strSQL &" " & Request.Form("product_briefdesc") & ","
> strSQL = strSQL &" " & Request.Form("product_fulldesc") & "."
> strSQL = strSQL &" " & Request.Form("product_status") & "')"
>
<klip>
Du sætter kun plinger (') lige efter VALUES( og til sidst. De skal stå
rundt om hver værdi. Så linierne komme til at se således ud:
strSQL = strSQL & " '" & Request.Form("product_id") & "',"
Men _kun_ hvis felttyperne i databasen er tekst (eller notat). Tal skal
ikke have plinger rundt om værdierne
Og som Lars nævnte, skal "." rettes til et "," i næstsidste linie
/Torben
--
Vil du lære at kode HTML, XHTML, CSS, SSI eller ASP ???
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials