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 have an online test and I want to open on 9:00 and close it on 11:00 automatically.
When test is closed students cannot test anymore.
I have no idea about this.. any help?
Use cron jobs and PHP script to enable and disable or email your students.
Enhanced Solution:
Store in your DB the starting and closing time of the test you can use it in your cron also. When the test is viewed it should see according to the open and closing time if the test is open or closed.
An easy tutorial on cron jobs http://code.tutsplus.com/tutorials/managing-cron-jobs-with-php--net-19428
Related
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 .
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 5 years ago.
Improve this question
I made a platform to remind me of some things I haven't done.
I've stored this reminds into a database and now I want this PHP based Website to send me emails.
I want to make tests to the database every morning and if I found records that are critical to send notifications to my email.
How can I do this ? Thank you :)
You have to implement cron job for this. For more details about cron job visit following URL:- https://stackoverflow.com/a/30872993/2706551
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 7 years ago.
Improve this question
I am designing a live demo version of a software I wrote. The database is modeled using MySQL, and comes with dummy data ready to use. What I would like to do is to have it generated the time a user signs in to try the demo, and have it be removed after he/she logs off or closes the system. What would be the best approach to solve such problem?
when a user login you can open a transaction in the database and never do the commit, then when he log out you just do a rollback or wait for database session expires.
This solution is easy to implement and the changes will be not visible for other users.
http://dev.mysql.com/doc/refman/5.6/en/commit.html
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 have to do an application in php but i don't known how make one things.
I want that (for example) every day at the 10 o clock my app begin to work.
At the moment it isn't important the content of the application but how i can start it at these time.
you can use cron job if you use linux
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
What would the code be to have a comments section on my website where logged in people can place a comment. I got a database and want to use html and php only. No 3th party involved.
Something simple and not to advanced.
You should check out some tutorials:
http://www.youtube.com/watch?v=KGmEZY6DBhw
http://www.2my4edge.com/2013/05/comment-system-using-php-and-mysql.html
We are not going to place an entire code here, you should show us that you've tried instead of just asking us to write all of your code.