On my localhost this page redirection working properly but when I setup my project on Godaddy hosting site it doesn't redirect to page it actually displaying same page! My code is as below:
<?
session_start();
include_once('connection.php');
$news_id=$_GET["id"];
$m_id=$_GET["m_id"];
$category =$_GET["category"];
$res=mysqli_query($con,"delete from marathi where id=$news_id");
if($res<=0)
{
$_SESSION["MSG"]="News not deleted, Try Again";
header("Location: m_news.php?id=".$m_id."&name=".$category);
}
else
{
$_SESSION["MSG"]="News deleted";
header("Location: m_news.php?id=".$m_id."&name=".$category);
}
?>
When I use godaddy this line is not working ..
header("Location: m_news.php?id=".$m_id."&name=".$category);