Ya tengo casi listo el calendario pero quiero agregarle un par de cosas mas
Primero:Quiero que el registro del dia 1 empiece justo debajo del encabezado correspondiente, por ejemplo, en el mes de mayo empezaria a partir del martes, en junio a partir del viernes, y asi sucesivamente
Segundo: Que las las filas no excedan las 7 columnas
Muchas gracias
P.D. Aqui les dejo lo que llevo hecho:
Código PHP:
Ver original<?php
include("../admin/conexion.php");
$con=conectar();
$fecha_actual=date('d/m/Y');
//$datos="SELECT * from reporte_horas where MONTH(fecha)=MONTH(CURDATE()) AND YEAR(fecha)=YEAR(CURDATE())";
//$resultado=mysql_query($datos,$con);
$fecha_div=explode("/",$fecha_actual);
for($i=0; $i<=$dia;$i++)
{
$fecha_acum="SELECT fecha,sum(horas) from (SELECT * FROM reporte_horas ORDER BY DAY(fecha)) reporte_horas where MONTH(fecha)=MONTH(curdate()) AND YEAR(fecha)=YEAR(CURDATE())group by fecha";
}
?>
<table border="1" align="center">
<thead><tr><th>Domingo</th><th>Lunes</th><th>Martes</th><th>Miercoles</th><th>Jueves</th><th>Viernes</th><th>Sabado</th></tr></thead>
<?php
{
echo '<tr>';
echo '<td>',$variable[1],'</td>';
echo '</tr>';
}
?>
</table>