Código PHP:
<?php
mysql_select_db($database_connection, $connection);
$contar =sprintf("SELECT * ..." );
$fechaactual = time();
$timestamp = strtotime($contar['fechacierre']);
$res = mysql_query($contar) or die(mysql_error());
if (mysql_num_rows($res)>0)&&($fechaactual >= $timestamp)
{
echo 'X';
} else {
echo 'Y';
}
?>
Porque no pasa al comparar fechas tengo algo mal????