snowboardr
Programmer
It wont update my counter for some reason...I don't get an error, and the number currently in the db for the counter is 1, but it just wont update. I don't get an error either..it does redirect.
<%
StrSQL = "SELECT * FROM bdirect WHERE id=" & strID &
rs = my_conn.Execute (StrSQL)
strLink = rs("link"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
strCount = rs("counter"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
strSQL = "UPDATE bdirect SET counter='" & strCounter + 1 & "' WHERE id='" & strID & "'"
Set rs = my_conn.execute(strSql)
Response.Redirect(strLink) 'takes you to the page...
%>
<%
StrSQL = "SELECT * FROM bdirect WHERE id=" & strID &
rs = my_conn.Execute (StrSQL)
strLink = rs("link"
strCount = rs("counter"
strSQL = "UPDATE bdirect SET counter='" & strCounter + 1 & "' WHERE id='" & strID & "'"
Set rs = my_conn.execute(strSql)
Response.Redirect(strLink) 'takes you to the page...
%>