public static function Login($User, $Password) { $arrUsuarios = array(); $tmp = new usuarios(); $getTempUser = $tmp->getRows("SELECT * FROM Usuarios WHERE User = '******'"); if (count($getTempUser) >= 1) { $getrows = $tmp->getRows("SELECT * FROM Usuarios WHERE User = '******' AND Password = '******'"); if (count($getrows) >= 1) { foreach ($getrows as $valor) { return $valor; } } else { return "Password Incorrecto"; } } else { return "No existe el usuario"; } $tmp->Disconnect(); return $arrUsuarios; }