Fw: [Phplib-users] DB class
Brought to you by:
nhruby,
richardarcher
|
From: Martin L. <mar...@ho...> - 2001-09-05 12:44:19
|
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
>
|