Solo quedan marcados los que tienen estado 1 como la imagen.
![](http://i37.tinypic.com/kbaotx.png)
esta es la base de datos.
![](http://i38.tinypic.com/fwkkyw.png)
![](http://i36.tinypic.com/2n80ox1.png)
Código PHP:
$consulta="select * from tabla3 where date_format(fecha,'%Y-%m-%d') = '$fecha_calendario_actual'
";
//echo "$consulta <br><br>";
$res_consulta = mysql_query($consulta, $link);
echo "<table>";
echo "<tr>";
while($row = mysql_fetch_array($res_consulta))
{
$x++;
$fecha = $row[fecha];
$estado = $row[estado];
echo"
<td>$x<input type='checkbox' name='estado' value=''></td>
";
}
echo "</tr>";
echo "</table>";
![](http://i38.tinypic.com/mtti82.png)