phplibWiki--databaseHowto, was--RE: [Phplib-users] DB class
Brought to you by:
nhruby,
richardarcher
From: <bm...@14...> - 2001-09-05 15:29:21
|
Hey Martin, Would you like to put your code snippet on the phplibWiki http://phplibwiki.15gram.com/hm/wiki/wiki.php under the databaseHowto section. http://phplibwiki.15gram.com/hm/wiki/wiki.php?edit=DatabaseHowto If you have trouble, email me and I will put it on for you. Trying the get the wiki started. It would be a great place to collect all these gems, don't you think?? Regards -bm -----Original Message----- From: php...@li... [mailto:php...@li...]On Behalf Of Martin Larsen Sent: Wednesday, September 05, 2001 7:43 AM To: php...@li... Subject: Fw: [Phplib-users] DB class Sorry.. Forgot to forward this to the list also. :-( > Hi Guenther... > > > With about 100 columns which even might change in the next time, > this > > seems quite complicated to me. > > Is there a more elegant way to get the names of the coloumns where > the > > value is 1 out of $db? > > foreach($db->Record as $key=>$val) { > if ($val == 1) { > show($key . '.gif'); > } > } > > Just from the top of my head. :-) But atleast it should give you a > hint of a direction you could try. > > Regards, > Martin > _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |