Re: [phplib] DB-Class From: Richard Archer (rha <email protected>)
Date: 09/05/01

At 1:26 PM +0200 5/9/01, Guenther Theilen wrote:

>Is there a more elegant way to get the names of the coloumns where the
>value is 1 out of $db?

Yes! Normalize the database. This will allow you to retrieve just
the records where foo = 1, so you just loop through the results
printing pictos.

There's an excellent introduction to normal form at:
http://home.earthlink.net/~billkent/Doc/simple5.htm

Be warned though, the article is very dense and requires slow and
careful reading!

By the way, please subscribe to the SourceForge support mailing list:
http://sourceforge.net/mail/?group_id=31885

 ...Richard.

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>