Revision: 9499
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 10, 2008 16:56 by crishnakh
Initial Code
<? if($bgcolor == '#FFFFFF')$bgcolor = '#F5F5F5'; else $bgcolor = '#FFFFFF'; ?> ---- <? $vector = array("ar.gif", "cl.gif", "co.gif", "cr.gif", "do.gif", "es.gif", "mx.gif", "pe.gif", "ve.gif"); $vector2 = array("Argentina", "Chile", "Colombia", "Costa Rica", "República Dominicana", "España", "Méjico", "Perú", "Venezuela"); for($i=0;$i<count($vector);$i++){ if($bgcolor == '#FFFFFF')$bgcolor = '#F5F5F5'; else $bgcolor = '#FFFFFF'; echo ' <tr> <td width="100%" bgcolor="'.$bgcolor.'"><img src="'.$vector[$i].'"> '.$vector2[$i].'</td> </tr> '; } ?>
Initial URL
http://www.webtaller.com/construccion/lenguajes/php/lecciones/colorear-tablas-datos-en-php.php
Initial Description
Initial Title
Color to rows in a table
Initial Tags
php, table, color
Initial Language
PHP