0) { while ($row = mysqli_fetch_assoc($query)) { ($row['img']) ? $img = $row['img'] : $img = "default.png"; if ($row['post_msg_id'] === $current_user) { $output .= '
' . $row['msg'] . '