Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $sql011 = "SELECT 98_idusr, 98_username, 98_clave, 98_grupo FROM $t98 WHERE 98_username = '$username' AND 98_clave = '$clave' AND 98_grupo = '$grupo'";
  2. $res011 = mysqli_query($conexion,$sql011);
  3. $rows=$res011->num_rows;
  4. if ($rows > 0)
  5. $row = $res011->fetch_assoc();
  6. $_SESSION['98_idusr'] = $row['98_idusr'];
  7. $_SESSION['username'] = $row['username'];
  8. $_SESSION['clave'] = $row['clave'];
  9. $_SESSION['grupo'] = $row['grupo'];
  10. echo "true";
  11. $error= "El nombre de usuario o clave es incorrecto, Por favor vuelva a intentarlo";// hasta aquí funciona muy bien de aquí en mas PESIMO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement