query($sql); while ($row = $result->fetch_assoc()) { include ('hammonddetails.html'); } ?>