AKINCI27 Posted April 19, 2009 Share Posted April 19, 2009 merhaba arkadaşlar aspde veritabanına veri kaydi için bir kodlama yazdım ama velakin 7 satırda hep hata veriyor bi yanlışlık varmı bakarmısınız htm sayfadan girilen bilgiyi bu altaki sayfaya yönlenditiyorum yani htm sayfasındaki input'a girilen bilgiyi çekip veri tabanına kaydedicem nerde yanlışlık yaptım acaba <%named=request.Form("name")sornamed=request.Form("sorname")set conn=server.CreateObject("adodb.connection")conn.open "provider=microsoft.jet.oledb.4.0;data source=C:\Inetpub\wwwroot\veri.mdb"sqlkod=" insert into SAVE (ADI,SOYADI) values ('"&named&"','"&sornamed&"') "conn.execute sqlkodresponse.Write("kayıt Tamamlandı")%>[/CODE] Link to comment Share on other sites More sharing options...
wmismail Posted April 19, 2009 Share Posted April 19, 2009 <%named=request.Form("name") sornamed=request.Form("sorname") set conn=server.CreateObject("adodb.connection") conn.open "provider=microsoft.jet.oledb.4.0;data source=" & Server.Mappath("C:\Inetpub\wwwroot\veri.mdb") sqlkod=" insert into SAVE (ADI,SOYADI) values ('"&named&"','"&sornamed&"') " conn.execute sqlkod response.Write("kayıt Tamamlandı") %> böyle dener misin. Link to comment Share on other sites More sharing options...
AKINCI27 Posted April 19, 2009 Author Share Posted April 19, 2009 bu sefer 5'inci satırda hata var diyor Link to comment Share on other sites More sharing options...
Ahmet2009 Posted April 19, 2009 Share Posted April 19, 2009 AKINCI27 kodu bir de bu şekilde düzenle, veritabanına yazma izni verdinmi? İyi çalışmalar. named=request.Form("name")sornamed=request.Form("sorname")SET conn = Server.CreateObject("ADODB.Connection")strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("C:\Inetpub\wwwroot\veri.mdb") & ";"conn.Open strConn conn.Execute("INSERT INTO SAVE (ADI,SOYADI) VALUES ('"&named&"','"&sornamed&"');")response.Write("kayıt Tamamlandı")[/CODE] Link to comment Share on other sites More sharing options...
wmismail Posted April 19, 2009 Share Posted April 19, 2009 ahmetin verdiğini dener misin veya direk addnew ve update ile eklesene. Link to comment Share on other sites More sharing options...
kusursuzus Posted April 21, 2009 Share Posted April 21, 2009 Veri tabanına yazma izni verdiğinden emin ol kodlarda hata yok gibi Link to comment Share on other sites More sharing options...
wmismail Posted April 21, 2009 Share Posted April 21, 2009 üsttekinde vardı. Düzelttik zaten. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.