登录 | 注册 | FAQ
Anonymous

Server side counter

+ 发表回复

2 篇帖子 分页: 1 / 1


Server side counter

aej11 » 周四 3月 05, 2015 1:39 am

I want to make a website with a simple petition for people to "sign" just by clicking a button. we also need to be able to display the cumulative total to the viewer.
So, i assume i need to set a value on the server and increment it each time the button is clicked. Is that correct? How would i do this? If i'm wrong, how should i do it?

Thanks guys!
头像

aej11

  • 帖子: 32
  • 注册: 周五 9月 13, 2013 1:01 am

Re: Server side counter

XainPro » 周四 3月 05, 2015 9:38 pm

yes you are correct in server side means you have to save the counter in any database i think mysql is light nd free database you should use mysql to save counter and increment it when each time submit button is clicked.

learn from this lesson that how you can save and retrieve the values from mysql database using php

http://html.net/tutorials/php/lesson17.php
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1