|
Posted by Rainman on 12/21/05 04:57
cross at php net wrote:
> Hrm, why do you have each day as a seprate member variable?
Well, because it comes from the database that way where there are
columns named 'sunday,'monday','tuesday', etc. I can't change the database.
>
> I would set it up as , an example:
> $obj->dayOfWeek['sunday']
>
> dayOfWeek being an array to hold each of the separate days data.....
>
This requires changing the database, or adding substantial code to fake
it. Is there no simpler way to refer to it similar to this: $obj->$dow
where $dow could be 'sunday, 'monday', etc.?
Mark
[Back to original message]
|