Ouch, dude. That's total gibberish. Also, you don't write
mark-up to do an
insert; you write a server script (or "code" to be super
generic). Markup
is what you used to make the form.
Anyway:
<%
If Inv_total = 0 Then
set Insert = Server.CreateObject("ADODB.Command")
Insert.ActiveConnection = MM_Inv_STRING
Insert.CommandText = "INSERT INTO Inv (Date, ID, Count)
VALUES ( date,
" & urlparameter & " , 1) "
Insert.CommandType = 1
Insert.CommandTimeout = 0
Insert.Prepared = true
Insert.Execute()
ElseIf Inv_total > 1 Then
set Update = Server.CreateObject("ADODB.Command")
Update.ActiveConnection = MM_Inv_STRING
Update.CommandText = "UPDATE Inv SET Count = Count +1 WHERE
Inv.ID = "
& urlparameter
Update.CommandType = 1
Update.CommandTimeout = 0
Update.Prepared = true
Update.Execute()
End If
%>