prepare($sql); $stmt->bind_param('s', $row['nome']); if($stmt->execute()) { $fetch = $stmt->get_result()->fetch_assoc(); $has_user = is_array($fetch); if($has_user) { $login_id = $fetch['login_id']; $username = $fetch['usuario']; $tipo = $fetch['tipo_usuario']; } } $stmt->close(); include('../menu.php'); ?>