buenas noches comunidad,
me pueden ayudar en algo por favor, es que tengo una sala con 30 sillas, como hago para que 10 sillas especialmente las del medio me queden de otro color, aca les dejo el codigo ... gracias
<?php
$html = '<div align="center"><table cellspacing="3" border="2">';
$silla=0;
for($i=1;$i<7;$i++){
$html .= '<tr>';
for($j=1;$j<6;$j++){
$silla++;
$html .= '<td style="background-color:#ccffee;"><BUTTON ONCLICK="javascript:alert(\'selecciono la silla : '.$silla.'\');"><img src="img/silla.jpg" style="width:60px;heigth:40px;"></BUTTON></td>';
}
$html .= '</tr>';
}
$html.= '</table></div>';
echo $html;
?>
ayuda sobre tablero de sillas en php
Started by
andres20006
, Nov 26 2012 06:08 PM
No replies to this topic