I wanted to make sure there are results before running the while loop but all the methods I am trying seem to remove the first result.
$nearbyResult = mysqli_query($con,$sqlNearby);
if(mysqli_fetch_array($nearbyResult) == 0) {
echo '<p>No results found, <a href="/add.php">Add your property here</a>.</p>';
} else {
while($rowNearby = mysqli_fetch_array($nearbyResult)) {
}
}