
19/09/2012, 14:03
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 427
Antigüedad: 17 años, 3 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';
}
?> |