I am having a DIV which only need to get refreshed if an error occurs in php code.Can anyone plz help me ?
Take a look at Xajax or sajax, it will give you an overview of the general idea behind how this is done. There are some other ajax/php libs out there. I have used one called TinyAjax in the past which was extremely simple to use, but the TinyAjax site is no longer online
There are some tutorials on codervods.com/Default.aspx?mode=default&category=AJAX&days=All¤tIndex=0 that might help you.