本文介绍了计算点击次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里寻找一些想法。


计算图像被点击次数的最佳方法是什么?


我在一个网站上有一个图像库,想要计算每个

图像被点击的次数(点击一个窗口中的全尺寸图像)

这样我知道哪些是受欢迎的,哪些不受欢迎。


我虽然只是在数据库中添加了一个额外的字段,它提供了图像细节和增量的
每次用户点击它时,数字为1

就在图像投放之前。如果有两个人同时点击同一张图片,那么这种下降的可能性有多大?


其他任何想法都非常感激。

Just looking for some ideas here.

What is the best way to count how many times an image has been clicked?

I have an image gallery on a site and want to count how many times each
image has been clicked (clicking pulls up the full size image in a window)
so that I know which are popular and which are not.

I though about wimply adding an extra field to the database which serves up
the image details, and incrementing a number by 1 each time a user clicks it
just before the image is served up. What are the chances of this falling
over if two people were to click the same image at the same time?

Any other ideas much appreciated.

推荐答案




我想要的东西,我可以在
的管理部分使用
网站。因此,管理员可以登录并能够看到哪些图片最多获得
,哪些图片获得最少的点击次数。


只有我能想到的自动方式是通过更新数据库。



I wanted something that I would be able to use in an admin section of the
site. So the admin people can log in and be able to see which pictures get
the most and which get the least hits.

Only automatic way I can think of is by updating the DBs.






谢谢。我怀疑的是什么。



Thanks. What I suspected.


这篇关于计算点击次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 10:07