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