update queryResults.php

In line 117, change the order of mysqli->close($mysqli);