27 November 2007 ~ Comments Off

ASP db class

1

In developing a new asp forum for The Frashness I have come up with a ASP class. Just like the db_class for PHP this can be used to connect to a MySQL database and you can call the following methods; Update, Insert, and Delete.
[asp]
Function insert_db(tableNa, theSQL)
Set add = Server.CreateObject(“ADODB.Recordset”)
SQLinsert = “INSERT INTO ” & tableNa & ” SET ” & theSQL & “”
add.Open SQLinsert, objCon
End Function
[/asp]
Download the ASP DB Class

Comments are closed.