Agradesco tu respuesta y el tiempo q te tomaste .
Pero ingreso el codigo  que pones y no  sale el color :( 
podrias orientarme?    
Código PHP:
Ver original<?php 
             require 'conexion.php';
            $link=conecta();
            
            
            $db_seleccionada =bd();
            $sql="select numero,clave,clave_con,conceptos,unidades,cantidad,costo_unitario, importe, c_sem1, i_sem1,c_est1,i_est1 ,a_sem from obracivil " ; 
            
            echo "<table border='0' bordercolor = '#FFFFFF'>\n";
echo "<TH bgcolor='#3399FF'>Consecutivo</TH><TH bgcolor='#3399FF'>Código concepto</TH><TH bgcolor='#3399FF'>Concepto</TH><TH bgcolor='#3399FF'>Unidad</TH><TH bgcolor='#3399FF'>Presupuesto origen cantidad</TH><TH bgcolor='#3399FF'>Costo unitario</TH><TH bgcolor='#3399FF'>Presupuesto origen importe</TH><TH bgcolor='#9999FF'>Esta estimación cantidad</TH><TH bgcolor='#9999FF'>Esta estimación importe</TH><TH bgcolor='#009933'>Acumulado estimado cantidad</TH><TH bgcolor='#009933'>Acumulado estimado importe</TH><TH bgcolor='#FF0000'>Por estimar cantidad</TH><TH bgcolor='#FF0000'>Por estimar importe</TH>";
            
            
            $i=0; 
 
 
      
           if($i==0){        
          echo "<tr bgcolor='#cccccc'>";       
 
         }else{
 
            echo "<tr bgcolor='#FFFFFF'>";
         }              
                
    echo "<tr>";
 
//echo "<td width=60 align=right > ".$reg["a_sem"]."</td>";                
echo "<td width=60 align=right > ".$reg["numero"]."</td>";
echo "<td width=10 align=left > ".$reg["clave_con"]."</td>";
echo "<td width=550 align=left > ".$reg["conceptos"]."</td>";
echo "<td width=60 align=CENTER > ".$reg["unidades"]."</td>";
echo "<td width=80 align=right > ".$reg["cantidad"]."</td>";
echo "<td width=80 align=right >\$$costo_unitario</td>";
echo "<td width=80 align=right >\$$importe</td>";
//captura de datos reales
echo "<td width=80 align=right >\$$c_sem1</td>";
echo "<td width=80 align=right >\$$i_sem1</td>";
 
// acumulado estimado sem0 +sem1
echo "<td width=80 align=right >\$$c_sem1</td>";
echo "<td width=80 align=right >\$$i_sem1</td>";
// acumulado estimado c_sem-cantidad origen
 
echo "<td width=80 align=right >\$$c_est1</td>";
echo "<td width=80 align=right >\$$i_est1</td>";
 
 
 
 
                    
 
} 
            
            echo "</table>";
 
 ?>