Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include "conect_BD.php";
- $id_usuario = "select id_usuario as num from USUARIOS where login = '".$_POST['Usuario']"' and password = '".$_POST['Clave']"'";
- $value = "select count (*) as tot from CLIENTES where usuario_id = '10' ";
- $result = $conn->query($id_usuario);
- $row = $result->fetch_assoc();
- echo "<h1 align='center'> Registro Exitoso <h1>" ;
- $result2 = $conn->query($value);
- if($result2->num_rows==1){
- $row2 = $result2->fetch_assoc();
- if($row2["tot"] > 0){
- <form action=" inicio_cliente.php"> </form>
- }
- else{
- <form action = "inicio_trabajador.php"></form>
- }
- }
- }
- $conn->close();
Advertisement
Add Comment
Please, Sign In to add comment