Are you using a recordset called Pet_Reg on your page?
If so, the php code that finishes your page (after the closing </html> tag) would be:
<?php
mysql_free_result($Pet_Reg);
?>
Are you still using a recordset called Pet_Reg (it will show in your Server Behaviors Panel), and what do the last few lines of your page code look like?