Online voting system in php [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
My project is online voting system in php, requirements is that one user votes, So he will be able to vote only then after 4 years.
Sessions gonna work ?

No. Sessions only last as long as the browser remains open.
A better idea would be to post the data to a database with a timestamp. Then, when the user tries to vote again, the most recent vote timestamp by that user is drawn from the database.
If the most recent vote timestamp is > 4 years old, you can then allow the user to post again.

Related

Survey of picture choices that drives the next question of picture choices [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
I'm trying to create a 3-question survey written in PHP/AJAX/JQuery that will basically present 6 pictures to be ordered/ranked from favorite to least favorite, then submitted & recorded to a mysql db, that will in turn drive the next 6 pictures to be ordered and submitted.
I've tried using a multi-step form, which seems ideal, but all the examples write the recorded choices at the end of the form submission, whereas I need each question in the survey to drive the next set of choices. I can't find anything like that to use as an example.

Count the amount of users that are logged in [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am working on a school project. The assignment is to recreate our own version of Ebay. A requirement is to display the number of logged in users. What is the best way to do this? We are using PHP.
We are using a database so we could save the amount of loggins there but there is no proper way to decrease this amount since people often just leave the site without logging out.
Some suggestions would be awesome!
you could have a heartbeat script that updates a datetime on the user column.
and the show logged in users script could get all logged in users with time < 5 mins

How to update day points everyday using php mysql [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am having this project to update the data everyday and I just want it to update like realtime date everyday without opening the website like trigger or some timer in my database.
For example there like points system for bronze account there would be 1 points everyday how can I do that in php mysql thank you for the help
ill just find out the answer to my problem ill just use the MYSQL Event to update the points every day and let the date update everyday .

How to limit the number of active sessions a user can have [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am buiding a licence style system where a user can buy one or a number of licences. They can then log in to the system only once with each licence (similar to Spotify). So a user buys 2 licences. They can log in once in Firefox and once with Chrome. If they try to log in using IE the system will prompt/warn that they will be logged out of another session.
I understand a user could just use multiple instances of the same browser to gain access to multiple sessions/screens but thats fine. We are really only trying to stop users from using multiple devices (2+ separate PCs) if their licence restricts.
Any idea how I would go about this? Can I check session data from another instance or should I store the logins in a separate table and check against that?
Thanks

How to implement Live notification using PHP,MYSQL,AJAX? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i'm developing a monitoring tool, it have a shift handover process
1.when current user reday hit hanover button it ask's the person name to handover shift
2.then the entry is added to mysql table(handover request table).
here the php should notify who has a request on database, it's possible by AJAX set interval, but i want when the request is in DATABASE that should be notify on user interface(by loged session name), please suggest codes or ideas

Categories