You are here: Re: [PHP] Re: Large forms to Mysql table... « PHP « IT news, forums, messages
Re: [PHP] Re: Large forms to Mysql table...

Posted by Miles Thompson on 08/15/05 05:14

At 10:33 PM 8/14/2005, mikespook wrote:
>Like this: $str = print_r($_POST, true);
>
>then insert $str into db.
>
>It`s easy way~~right?
>
>""Andras Kende"" <andras@kende.com>
>??????:CE.18.33075.AECAEF24@pb1.pair.com...
>Hello,
>
>
>
>I have a html page with 70+ form fields some like 40 fields are only used
>for entering quantity numbers…
>
>
>
>Is it a good idea to put this 50 fields of the form fields into a single
>text mysql field?
>
>
>
>Somehow process it with php before, put inside of some kind of xml
>structure?
>
>
>
>Just don’t want to do Mysql table with 70 fields…


One of the advantages of relational databases is that you do not have to
know the structure of the data.

Why break that? Why subject yourself, and the developer who follows you and
has to maintain your code, to parsing hell?
Why do you not want to do a MySQL table with 70 fields? MySQL is designed
for this sort of thing.

Given the tone of these comments, your database design may be questionable.
Is a lot of data in a given table redundant; and if so the design likely
needs work.

Regards - Miles Thompson

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация