Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/09/2012, 14:03
maxpower2008
 
Fecha de Ingreso: diciembre-2007
Mensajes: 427
Antigüedad: 16 años, 4 meses
Puntos: 35
Respuesta: Agregar comparación a mi código

<?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))// Aqui te faltaron los parentesis
{
echo 'X';

} else {

echo 'Y';

}

?>