Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: how to add record in database


Message #1 by mayurapatil@y... on Mon, 17 Sep 2001 13:11:55
i want to add record in the database by clicking on link how to do that?
Message #2 by David Cameron <dcameron@i...> on Tue, 18 Sep 2001 09:17:02 +1000
Take them to a new page that inserts the record.



Rough code for the new page:



Dim cn



Set cn = Server.CreateObject("ADODB.Connection")

cn.Open "<Your connection string>"



cn.Execute "INSERT INTO (<your fields>) VALUES (<your values>)"



cn.Close

Set cn = Nothing

Response.Redirect "<YourPage.asp>"





regards

David Cameron

nOw.b2b

dcameron@i...



-----Original Message-----

From: mayurapatil@y... [mailto:mayurapatil@y...]

Sent: Monday, 17 September 2001 11:12 PM

To: ASP Databases

Subject: [asp_databases] how to add record in database





i want to add record in the database by clicking on link how to do that?

 


  Return to Index