开发者

How do I calculate number of times a data is accessed?

开发者 https://www.devze.com 2023-02-22 21:46 出处:网络
I want to track number of times a data is acce开发者_如何学编程ssed from a table. How can I do this with PHP and MySQL?Add an extra number column to the table, starting at 0, then remember to add one

I want to track number of times a data is acce开发者_如何学编程ssed from a table. How can I do this with PHP and MySQL?


Add an extra number column to the table, starting at 0, then remember to add one to the column every time you access a row. For example: UPDATE Tbl1 SET counter = counter + 1 WHERE name ='joe_bloggs'

0

精彩评论

暂无评论...
验证码 换一张
取 消