php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -


but did not understand

  1. the concept of generating link &

  2. more importantly how save data in database,do save id of poll & yes/no click or done other logic.

  3. what happen polls expired? remain in database or somewhere else?

please help

to handle url can use curl.

but have easy method. can use concept of query strings.

to create new question

store new question in database.give each question unique id.

then after user submits questions show him link like:

http://do-survey.com?question=xzxsa

to store polls

get question like:     if(isset($_get['question']))    {        $question = $_get['question'];         // have question unique id manipulate database using    } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -