* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]):
> On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote:
> > * Thus wrote Richard Baskett ([EMAIL PROTECTED]):
> > > on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
>
> unfortunately, this won't work... you need to loop through the
> lightbulbs...
>
> try something like:
>
> foreach ($lightbulbs as $bulb){
Only one light bulb from how I originally read it. Multiple light
bulbs will be supported in the next version.
>
> http://us4.php.net/manual/en/i-have-too-much-time-on-my-hands.php
According to this manual I have to supply this patch to make the program
work properly:
*** lightbulb.php Tue Aug 26 23:21:10 2003
--- lightbulb.fix.php Tue Aug 26 23:21:51 2003
***************
*** 7,12 ****
! if ($lightbulb['temp'] > $room['temp']) {
! echo "switch #1";
! } elseif ($lightbulb['ison']) {
echo "switch #2";
} else {
--- 7,12 ----
! if ($lightbulb['ison']) {
echo "switch #2";
+ } elseif ($lightbulb['temp'] > $room['temp']) {
+ echo "switch #1";
} else {
>
> </joking>
Cheers!
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php