Re: [PHP] using variable ..help

2002-08-28 Thread @ Edwin
>I want my bgcolor display with one by one like this below > > > > > > Try this: /* -- from here -- */ \n"; foreach ($mycolor as $value) { echo "\n\n\n"; } echo "\n"; ?> /* -- 'til here -- */ - E PS See: http://www.php.net/manual/en/control-struct

Re: [PHP] using variable ..help

2002-08-28 Thread Stas Maximov
Remon, Your code works correct, cause you coded it this way as it should go through the array and output every element in the array into one line. If I got your idea correctly - you probably want you rows to be of two different colors. You may do it simplier way: blablabbaba