RE: [PHP] Is there a way to display data from database for Select Options in a form?
| From: | Jay Blanchard | Date: | Tue, 10 Jan 2006 16:51:41 +0000 |
| Subject: | RE: [PHP] Is there a way to display data from database for Select Options in a form? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-228419@lists.php.net to get a copy of this message | ||
[snip]
> [snip]
> teaching noobs to output html while (oun intended) looping thru a
> result set is counter-productive. discuss.
> [/snip]
>
> Why is this counter-productive?
it's a shit way of doing things - with the added bonus that it usually
comes with shit output (as non-validating, bare-minimum-to-get-it-working
HTML).
is that enough 'why' to start a discussion ;-) probably not :-)
[/snip]
If not, then give us some more. :)
As to why the HTML would be non-validating it would only be because it
wasn't formatted properly in the output.
Let's look at it another way, why 70-80 lines of code when 4 will do it
properly when done correctly?