Databases and Complex forms

This is a discussion on Databases and Complex forms within the PHP Language forums, part of the PHP Programming Forums category; Hi all, Got a question for y'all regarding the best way to maintain HUGE forms and linking them to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2003
Charles E. Pelkey
 
Posts: n/a
Default Databases and Complex forms

Hi all,

Got a question for y'all regarding the best way to maintain HUGE forms and
linking them to data tables in MySQL.

I have a set of forms that were created specifically for a Loan Services
Company (ranging from request forms to complex inspection forms with
hundreds of input fields (such as room size, item quantity, item quality and
costs) the problem I had in the initial setup was how to create the
associated data tables for each type of form. I opted to store ONLY the
client information, type of report and a few other miscellaneous items in a
table called reports and the rest of the data is dumped into an INI format
file using a php class that reads and writes ini files.

This current setup works, but not all the fields from the reports are
searchable. Additionally, going this route I had to modify all the forms and
create the associated report format (no form fields, just echoing the
correct data back where needed) and this is not user friendly enough (as if
the forms change, then the report format must change as well). Does anyone
have any recommendations on how best to modify this to use MySQL tables to
store the data without overloading the database? Or am I going about this
the wrong way???

Looking forward to your responses,
-Chalres


Reply With Quote
  #2 (permalink)  
Old 11-08-2003
Tim Van Wassenhove
 
Posts: n/a
Default Re: Databases and Complex forms

On 2003-11-08, Charles E. Pelkey <cpelkey@charter.net> wrote:
> Hi all,
>
> Got a question for y'all regarding the best way to maintain HUGE forms and
> linking them to data tables in MySQL.
>
> I have a set of forms that were created specifically for a Loan Services
> Company (ranging from request forms to complex inspection forms with
> hundreds of input fields (such as room size, item quantity, item quality and
> costs) the problem I had in the initial setup was how to create the
> associated data tables for each type of form. I opted to store ONLY the
> client information, type of report and a few other miscellaneous items in a
> table called reports and the rest of the data is dumped into an INI format
> file using a php class that reads and writes ini files.


*) First let's clean up our datastorage a little

I'd suggest you make a table (or if you have different datatypes, a
couple of tables).
dumps(dump_id,name,value);

Then you setup a table to link the dumps with the reports.
reportdumps(id,report_id,dump_id);

Now you can easily lookup all the extra data added to a report.


*) Now create a FormGenerator class (or find one on the net and adapt it
to your needs).


--
Visit my website at http://home.scarlet.be/~vwadsl
My jabber handle is aardbei@jabber.org
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0