Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8204633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:57:28+00:00 2026-06-07T07:57:28+00:00

I want to develop an app in PHP with following features User can create

  • 0

I want to develop an app in PHP with following features

  • User can create multiple form using a form designer with as many field they wanted
  • Every form submission will be stored in mysql
  • User can see respective form submission later

I have done the UI part and form designer.

Problem

I am not able to figure out how to design database for accepting form submission, for instance If an user created a form with following fields

  • Name
  • Email
  • City
  • Subject
  • Query

But later user can add or remove fields without messing with the database design.

Please help me with MySQL database design for storing form into table and there submission.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:57:30+00:00Added an answer on June 7, 2026 at 7:57 am

    Something like this:

    CREATE TABLE forms (
      form_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, -- the UID of this form
      owner   INT,                                     -- the user who "owns" the form
      PRIMARY KEY (form_id)
    );
    
    CREATE TABLE fields (
      form_id  BIGINT UNSIGNED NOT NULL,
      field    VARCHAR(10),                            -- the field name
      PRIMARY KEY (form_id, field),
      FOREIGN KEY (form_id) REFERENCES forms (form_id)
    );
    
    CREATE TABLE submissions (
      submission_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
      form_id       BIGINT UNSIGNED NOT NULL,
      field         VARCHAR(10),
      value         BLOB,                              -- stores PHP's serialize($var)
      PRIMARY KEY (submission_id),
      FOREIGN KEY (form_id) REFERENCES forms (form_id),
      FOREIGN KEY (form_id, field) REFERENCES fields (form_id, field)
    );
    

    I would suggest that modifications to a form’s design create a new (copy) form in the database, so as not to invalidate any historical submissions based on the old design.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop an app for WP7 using C# where a user taps
I want to develop an app in php that I can link with a
I want to develop an app which can Block the Invocation of some Blackberry
I Want to develop a app which can identify corporate email accounts and when
I want to develop an app with WXPython or other GUI for Python, can
i want to develop an app for manage the desktop in windows using C#
I am using Phonegap 1.3.0, and want to develop an app which uses local
I want to develop an app which broadcast messages which can be viewed only
I want to develop an app that can download a load of data at
I want to develop an app for windows phone using Phone Gap. The Phone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.