Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Jquery/Ajax update database every x minutes
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kaz" data-source="post: 366213" data-attributes="member: 1611"><p>Basically i am wanting to update a field every 5 minutes per user. </p><p>For example i have 10 users, and a field called count. </p><p>Every 5 minutes i want count to be count + 1</p><p></p><p>I know this can be done via cron in php, however after having a look through stack at a few similar questions, many answers have been 'it can not be done due to cron being server bases and jquery/ajax being clientside'.</p><p></p><p>Another issue i may face is being 1 user may update every 4.5 minutes or even 4 minutes and the remaining 9 updating every 5.</p><p></p><p>Is there a way to do this per user using ajax? Along with displaying a countdown timer until their next 'update'</p><p></p><p>Im not too sure what approach to take, any insight/thoughts would be great</p></blockquote><p></p>
[QUOTE="Kaz, post: 366213, member: 1611"] Basically i am wanting to update a field every 5 minutes per user. For example i have 10 users, and a field called count. Every 5 minutes i want count to be count + 1 I know this can be done via cron in php, however after having a look through stack at a few similar questions, many answers have been 'it can not be done due to cron being server bases and jquery/ajax being clientside'. Another issue i may face is being 1 user may update every 4.5 minutes or even 4 minutes and the remaining 9 updating every 5. Is there a way to do this per user using ajax? Along with displaying a countdown timer until their next 'update' Im not too sure what approach to take, any insight/thoughts would be great [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Jquery/Ajax update database every x minutes
Top