Solo quedan marcados los que tienen estado 1 como la imagen.

esta es la base de datos.


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>";
