如何从图像按钮中检索总共没有点击并存储到数据库中。 [英] how to retrieving total the no.of click from image buttons and store into database.

查看:89
本文介绍了如何从图像按钮中检索总共没有点击并存储到数据库中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将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.


这篇关于如何从图像按钮中检索总共没有点击并存储到数据库中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆