Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Ask how to write a code to calculate the number of clicks in news or web page making.
Ask how to write a code to calculate the number of clicks in news or web page making.
When clicked, go to the statistics page and then go to the details page.

On the statistics page, first pass the id in the database of this picture to the statistics page, then click the number of corresponding pictures+1 on the statistics page, and then go to the details page of this picture. The specific code is as follows:

Statistics page code:

& lt%

Id = request ("id")

SQL = "update[ table name] set hit = hit+1where ID ="&; Identification (identification)

Connection execution (sql)

Response.redirect "detailed page address"

% & gt