Can anyone tell me where is the syntax error of the following code:
echo "<td bgcolor=.$cores[i].></td>";       
$cores is an array of colors codes: 
$cores = array("#FF0000","#FFBF00","#FFFF00","#04B404","#58FAF4","#0101DF","#8A0886");
Can anyone tell me where is the syntax error of the following code:
echo "<td bgcolor=.$cores[i].></td>";       
$cores is an array of colors codes: 
$cores = array("#FF0000","#FFBF00","#FFFF00","#04B404","#58FAF4","#0101DF","#8A0886");
 
    
    try this:
echo "<td bgcolor={$cores[$i]}></td>";  
