On my website, i want to start a survey on 9th October 12:00 am and close it on 12th Oct 12:00 am. Currently i am bit confused how to achieve this ? i mean how will the script (php) on my website knows that now is the time to mark this survey closed ?
Usually you store the date/time of the start and close in a table or some file, when you read the file to see what survey is available you would put the following as a condition
Sir, basically i want to give a list of surveys that viewers can fill. But i also want to show the surveys that are closed. So do i need a cronjob that will scan the database at regular intervals to see which survey should be closed ? or is there any other way to do it ?