while ($row = $result->fetch_assoc()) {
$usernameThis;
$nextQuery = "SELECT user FROM uzytkownicy WHERE id = '".$row['user_a_id']."' ";
$isfnt = "SELECT user FROM uzytkownicy WHERE id = '".$row['user_b_id']."' ";
if($resultQuery = $mysqli->query($nextQuery) == $_SESSION['user']){
if($resultQuery = $mysqli->query($isfnt)){
$usernameThis = $resultQuery;
}
}
else{
$usernameThis = $resultQuery;
}
echo '<div class="widget-area widget-friend-request" style="background: #343a40; border-radius: 25px; width: 50%; margin-top: 15px;">'.$usernameThis.'<br><form action="delete.php" method="Post"><input type="hidden" value="'.$row["user_a_id"].'"/><button type="submit" class="btn btn-danger">Usuń ze znajomych</button></form></div>';
}
Chce żeby wyświetlała się nazwa znajomego a mi jej nie wyświetla! Co Moge Zrobić?