I have one php website in which I am using pagination. I am doing some action with mysqli query in page. I am redirecting to home page after finish query using header with below code.
header( "Location:manage_quotes.php");
I want stay in same page after finish query. I have tried many solution from stackoverflow but not got any proper solution. Anyone can please suggest me solution for this ?
I have tried
$currentpage='http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header( "Location:".$currentpage);
but due to I am using query with page its reloading that query page instead of url on which I was before perform action.
Thanks