%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%> <% Set con = Server.CreateObject("ADODB.Connection") con.Open "DBQ=" & Server.MapPath("counter.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};DriverID=25;FIL=MSAccess;" SQL = "SELECT * FROM counter" SET RS = con.Execute(SQL) RS.MoveFirst count = RS("counts") + 1 SQL = "UPDATE counter SET counts = '"&count&"' " SET RS = con.Execute(SQL) con.CLOSE %>
|
<%=count%> 位參觀本站的貴賓