php - Dozens of forms handling -


i working on project has dozens of forms. :

laptops_form | mobile_form | vehicles_form | form_45.

for each form data stored in different table in database.

i have 45 forms. vast e-commerce web application.

each database table has representational page in application visitors see posted ads.

i intermediate level programmer. in scenario feel it's way it. right or there way achieve such goal in minimized way.

it depends on type of data stored in tables, if, example, data fields similar need differentiate between forms, can create 1 table , add flag called form_type, , table store data forms.

if data fields different, can have (like have right now) table each form, or can have few dynamic tables (like when you're building custom form). personally, favor approach because it's faster when comes performance. second approach, however, more flexible , you'll able add more forms if want without creating additional tables - additionally, reporting easier using second approach.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -