You are here: Re: [PHP] Is there a way to display data from database for Select Options in a form? « PHP « IT news, forums, messages
Re: [PHP] Is there a way to display data from database for Select Options in a form?

Posted by Jochem Maas on 01/10/06 18:59

David Grant wrote:
> Jochem,
>
> Jochem Maas wrote:
>
>>teaching noobs to output html while (oun intended) looping thru a
>>result set is counter-productive. discuss.
>
>
> I disagree, however, I do believe attention should be drawn to reasons
> why doing so might be considered bad practice.

1. your looping a result set which involves a db connection - lots
of pontential things that could go wrong...

2. its not a centralized 'solution' - code reuse is a good thing.

3. we should encourage people to aim a little higher?

>
> Even the longest journeys start with small steps, and asking someone new
> to PHP to separate various tiers might put them off.

which I could spin as a positive thing - raising the lowest commom denominator
so to speak. besides Sue was the one that came with the many-in-one question
(i.e. how to a dynamically generate a select box AND how do I grab data from
a DB).

>
> David

 

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

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