jackie_patil wrote:Hello Friend
I have created a address book where I display all the contact info in list from data base
I have some more user functon in same row like edit,delete,details .
Now when I delete some contact from list then deleted from data base but show in the list for first time and after refreshing page it's disappear.
So want to same suggestion to refresh page after delete.
I usually just use html from within PHP, something along these lines usually does the trick:
echo '<html><META HTTP-EQUIV="Refresh" CONTENT="0; URL=yourpage.php"></html>';
Just replace the yourpage.php with the name of the webpage you want it to reload. I actually end up using this fairly often, so I created a function called refresh_page that looks something like this:
function Refresh_Page($page)
{
$refresh='<html><META HTTP-EQUIV="Refresh" CONTENT="0; URL='.$page.'"></html>';
echo $refresh;
}
Then when I need to refresh a particular page, I can call the function and pass it the name of the page I need to refresh:
Refresh_Page('yourpage.php');
Hope that helps.