Moved mysqli_close() in compare.php