Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/05/2011, 19:38
oscarbt
 
Fecha de Ingreso: abril-2009
Ubicación: Colombia
Mensajes: 949
Antigüedad: 15 años
Puntos: 27
Respuesta: Tengo un problema con mysql_num_rows

Creo que si no existen filas deberias colocar un else

if (mysql_num_rows($result) >0 )
{
// if they are in the database register the user id
$_SESSION['valid_user'] = $userid;
}

else
echo "No existe la sesion";