Well I guess the best way to help you is first describe that query they are using and then provide you a nice site which can introduce you to using stored procedures. I am not sure which language you are using for ASP.NET, but the example page uses C#. The same method and a lot of the same syntax works for VB.NET etc.
So on to your query...
CODE
tbl.open "insert into errorlog(website, pagename, errormsg, errordate, fixflag) values('"&request.servervariables("http_host")&"','"&filename*"','"&text&"','"&now&'",0)",next1,3
First thing to notice is the tbl.open at the beginning. This is what is called "opening" a recordset on the table. You can think of it as simply executing that insert query on the table. The second thing to notice is that you have an insert query that will insert a record to the errorlog table. That tables columns are website, pagename, errormsg, errordate, and fixflag. That is five columns and the values section next will have five values to put in each of those columns. They match up, are the same type that the column expects and thus in the same order.
So for instance, the value returned by request.servervariables("http_host") will return a hostname, preferably string data and it matches up with the first column "website". The filename parameter in values is matched up with the "pagename" column, the text value is matched up with "errormsg" column etc etc. Fixflag would then store 0.
Each of these values are variables, so they cannot be put straight into the query string, they are concatenated on. That is what all the ampersands are about. So if the value returned from request.servervariables("http_host") was "www.google.com" then it would append that to the string leading to....
...) values('www.google.com',...The next one being filename variable. If that was set to "homepage.aspx" then it would give you...
...) values('www.google.com','homepage.aspx',...The google url would be put in the "website" column and homepage.aspx would be put in the "pagename" column etc.
So at the end of this all you will have something that may look like this...
CODE
tbl.open "insert into errorlog(website, pagename, errormsg, errordate, fixflag) values('www.google.com','homepage.aspx','Hello there, this is my text','1-11-07',0)",next1,3
Make sense? The last values you see there, next1 and 2 are part of the tbl.open statement. They are parameters to tell how to open up the recordset using the connection object (which is probably next1 there) and the 3 is the cursortype.
Now for the stored procedures, the site below will give you a good start on how to create the stored procedure for the insert and how to use ASP to then execute it, passing it the parameters you pass up in that open statement (eg www.google.com, homepage.asp, etc). A word of caution, keep track of the parameters types. For instance the google.com is a varchar, but the 0 is an integer. Make sure they match the database data types.
Hope this site helps you out...
Using Stored Procedures with ASP.NETEnjoy!
"At DIC we be stored procedures.... of ass kicking destruction!"