|
|||
|
Como an estado..
tenogo un problema , estoy tratando de validar usuarios utilizando adodb, y pphp , y pues no me funciona y la verad creo que esta bien, por eso le voy a dejar e codigo para ver si aguno de ustedes puede ver el error que tengo, se lo agradeceria... ###################################............... .......... <?php include("conexion2.php"); //session_start(); //$cedula=$_POST['cedula']; $pass=$_POST['cedula']; //$nick=$_POST['nick']; $user=$_POST['nick']; if($_POST['method']=="login"){ $query = "select * from usuarios_pag_separado where nick_usuario = '$user' and pass_usuario = '$pass'"; $una=$_POST['pass_usuario']; $res = $db->Execute($query); if(isset($res->fields['pass_usuario'])){ $_SESSION['name']=trim($res->fields['nom_usuario']); $_SESSION['logged']=true; $_SESSION['tipo']=trim($res->fields['tipo_usuario']); if(trim($res->fields['tipo_usuario'])=="1"){ echo "<script> window.location = 'enlace_busqueda.php'; </script>"; } elseif(trim($res->fields['tipo_usuario'])=="2"){ echo "<script> window.location = 'enlace_busqueda_datos.php'; </script>"; } elseif(trim($res->fields['tipo_usuario'])=="3"){ echo "<script> window.location = 'Buscar_cliente_cheque.php'; </script>"; } else { echo "<script> alert('Usuario / Contrasena invalidos'); window.location = 'login.php'; </script>"; } } else{ echo "<script> alert('Usuario / Contrasena invalidos'); window.location = 'login.php'; </script>"; }//fin del if isset }//fin method login ?> |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|