![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/10/2014, 15:37
|
![Avatar de Djoaq](http://static.forosdelweb.com/customavatars/avatar477867_3.gif) | | | Fecha de Ingreso: septiembre-2012 Ubicación: Barcelona
Mensajes: 271
Antigüedad: 12 años, 4 meses Puntos: 38 | |
Respuesta: darle color a filas de tabla php dependiendo de su valor Mirate la función mysql DAYOFWEEK(date)
Returns the weekday index for date (1 = Sunday, 2 = Monday, …, 7 = Saturday). These index values correspond to the ODBC standard
Cuando construyas la select agrega el campo de fecha as diasemana y en el bucle while metes un if si es 1 o 7 haces un echo del row con un css diferente.
Un saludo !
Suerte! |