Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/05/2007, 07:45
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Problema funcion fecha

Código PHP:
function fecha()
{
$ahora date("Y-m-d H:i:s");
$resultado mysql_query ("select * from users
where fecha_end='$fecha_end'"
) or die( mysql_error() );
$row mysql_fetch_array$resultado );

$ahora time();
$prueba strtotime$row[0] );
if (
$ahora $prueba)
{
echo 
'<font color=#8F2D0E>';
echo 
"Tu periodo de prueba a finalizado.<br>";
echo 
"</font>";
}
else
{
echo 
'<font color=#8F2D0E>';
echo 
"Bienvenido<br>";
echo 
"</font>";
return ;
}