VIEW/COPY THE SOURCE CODE into a Dreamweaver PHP page "; // start the table // A for loop "header" has three parts, an initialization, condition, and increment // Each part is separated by a semi-colon // What should repeat in the loop is in the braces under the line that starts with "for" for($i = 0; $i < $numberOfRows; $i++) // The variable $i starts at 0, goes up by 1 because of $i++ { // and the loop stops when $i equals $numberOfRows // a color requires 6 hexidecimal digits (0,1...9, A... F) $bgCol = $letters[rand(0, count($letters)-1)]; // first random digit $bgCol .= $letters[rand(0, count($letters)-1)]; // The ".=" means add what is on the right to $bgCol .= $letters[rand(0, count($letters)-1)]; // the end of the variable ($bgCol) $bgCol .= $letters[rand(0, count($letters)-1)]; $bgCol .= $letters[rand(0, count($letters)-1)]; $bgCol .= $letters[rand(0, count($letters)-1)]; // $bgCol now has 6 digits echo "My background color is $bgCol"; // HTML table code } echo ""; // end the table ?>