Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/04/2011, 15:03
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 11 meses
Puntos: 641
Respuesta: Tablas, Colores i SQL

pon el código encerrado en los tags correctos para que se vea de esta manera

Código PHP:
Ver original
  1. <TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1>
  2. <tr><td><b><b>Codi</td></b> <td><b>Titol</td></b> <td><b>Soci</td></b> <td><b>Dia del prestec</td></b> <td><b>Dia de la tornada</td></b>
  3. </tr></tr></tr>
  4.  
  5.  
  6. <?php
  7. while($row = mysql_fetch_array($prestec)) {
  8. printf("<tr><td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td></tr>", $row["codi"], $row["titol"], $row["soci"], $row["prestec"], $row["tornada"]);
  9.  
  10.  
  11. if ($row["tornada"] < $fecha){
  12. echo "<font Color='red'>".$row["tornada"]."</font>";
  13. }else{
  14. echo "<font Color='green'>".$row["tornada"]."</font>";
  15. }
  16. }
  17. //Tancament Conexio
  18. mysql_close($link);
  19. ?>
  20. </table>

es donde dice highlight

por otro lado todo código html va en minúsculas.