Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/09/2012, 18:33
Avatar de Briss
Briss
 
Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 12 años, 10 meses
Puntos: 12
Respuesta: Agregar comparación a mi código

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????