如何从图像按钮中检索总共没有点击并存储到数据库中。

如何从图像按钮中检索总共没有点击并存储到数据库中。

问题描述:

如何将6个图像按钮的点击次数存储到数据库中。请帮助我新编码。我创建了数据库表,看起来像这个ID,ads1,ads2,ads3,ads4,ads5,ads6,totalclicks。

How do i store the number of clicks of 6 image buttons into database. Help me pls im new to coding. I have created database table which looks like this ID, ads1,ads2,ads3,ads4,ads5,ads6,totalclicks.

亲爱的Endles_story你需要使用Jquery为此目的。
每次点击
将其值保存在隐藏字段中

之后在服务器端获取此隐藏字段。

make a在它上面循环。

并获得你点击你图像的总数。



它可以轻松获得。
dear Endles_story you need to use the Jquery for this purpose.
on every click save its value in an hidden field
after that get this hidden field at server side.
make a loop on it.
and get your total number of click on your image.

and it can easliy get.