Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/04/2011, 18:19
Avatar de bocho0610
bocho0610
 
Fecha de Ingreso: enero-2010
Ubicación: <? echo "Santiago, Chile"; ?>
Mensajes: 341
Antigüedad: 14 años, 4 meses
Puntos: 26
Respuesta: Tablas, Colores i SQL

Código PHP:
Ver original
  1. <table>
  2. <tr>
  3. <td>FECHAS</td>
  4. </tr>
  5. <?while($row=mysql_fetch_array($sql)){
  6. echo "<tr>";
  7. if($row['fecha']<$fecha){
  8. echo "<td bgcolor='#FF0000'>".$row['fecha']."</td>";
  9. }else{
  10. echo "<td bgcolor='#0000FF'>".$row['fecha']."</td>";
  11. }
  12. echo "</tr>";
  13. }
  14. ?>
  15. </table>

Revizalo asi y rellena con las consultas.
__________________
Sigueme en Twitter!
Septimoarte.cl <-- Un mundo en cine.