Jump to content

PHP Questionnaire


DLloyd

Recommended Posts

Hi everyone, i am marking a number of php questionnaire forms on my webpage and they connect up to a Mysql database, so far so good. However, the part i am having trouble with is... i need certain questionnaires to only be released for fixed periods of time (for example 1/2 weeks). Would anyone be able to help me out and give me some idea of how i would go about this?

 

Thanks :)

Link to comment
https://forums.phpfreaks.com/topic/295674-php-questionnaire/
Share on other sites

Hi, by released, i mean the questionnaire will be able to be selected by a member of the public, this will be when it is released, and before released it should be invisible. I currently have two questionnaires in a list box that users can select from. 

 

and in terms of '1/2 week', i would say counting by days would be my best option.

 

Thanks again.

Link to comment
https://forums.phpfreaks.com/topic/295674-php-questionnaire/#findComment-1509335
Share on other sites

Assuming that the questionnaire contents are in a table which contains not only the questions but the title and a date field that you can call "release_date". Set that field to be the date you want it to be available and maybe have another field to close it so that when the page is called for and you query your db you select only those who have a release date and close date within your current window of time, ie, release <= today and expire >= today.

Link to comment
https://forums.phpfreaks.com/topic/295674-php-questionnaire/#findComment-1509336
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.