fix undefined halaman.
fix Warning: mysql_close(): no MySQL-Link resource supplied