English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to store the number of times an item has been viewed.

2006-12-22 05:54:41 · 1 answers · asked by yahooza 4 in Computers & Internet Programming & Design

1 answers

Add a column to your Items table called "ViewCount" as an integer field.

Have your page execute a SQL statement to increment this value every time the item is viewed.

SQL = "UPDATE Items SET ViewCount = (ViewCount + 1) WHERE ItemID = MyItemID"

2006-12-22 06:41:06 · answer #1 · answered by Kryzchek 4 · 2 0

fedest.com, questions and answers