The questionnaire process-the edited questionnaire (stored in the database) is displayed in the browser

Source: Internet
Author: User
  1. The first step is to understand the design of the data, that is, how the data room is stored in the database.
    1. Let's take a look at the simplest form of a questionnaire.



    2. You can see that the approximate structure is: "Title: Caption Description of title content." Title: Topic number, topic content. Options: Option type, option number, option content. Submit: Submit button. The elements within the "" are stored in the database.
    3. Think about it: can you store a questionnaire? This should be possible, but a table should not be able to store only a single questionnaire, otherwise it would be too wasteful.
    4. What should the database be designed for:
      1. First: The overall questionnaire basic information should have:
        The number of the questionnaire (we send the questionnaire to others through the link to fill out the words, to uniquely identify this is the questionnaire we sent to friends, in case the wrong place to fill in),
        The questionnaire title,
        The description of the questionnaire (say what the meaning of the questionnaire is, why the research services, etc., say thank you again),
        The person who created the questionnaire (i.e. the user),
        When the questionnaire was created,
        Status of the questionnaire (if I published the questionnaire found that there is inappropriate, I can choose to turn the questionnaire into a suspended state, to modify it)

      2. The next level of a questionnaire is the problem.
        1. So you need to store the problem:
          Number of questions

The questionnaire process-the edited questionnaire (stored in the database) is displayed in the browser

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.