Hi all,
The following script performs some mysql functions and once its done I want it to redirect to another page but the methods I have tried do not seem to work. I think this may be because my page calls other script before trying the redirect. I have put a line of ******* where I want the redirection to take place. Thanks in advance for your help !
if(!($_POST['title']==""))
{
mysql_query("update $table set flag='' where flag='C'");
mysql_query("update $table set flag='C' where flag='B'");
mysql_query("update $table set flag='B' where flag='A'");
if(mysql_query("insert into $table (Ntitle, Ndate, Narticle,flag) values ('$POST[title]','$POST[date]','$POST[news]', 'A')"))
{
echo ('<h1>News Updated:</h1><br><br><b>Title: </b>'.$POST['title'].'<br><br><b>Date: </b>'.$POST['date'].'<br><br><b>Article: </b>'.$POST['news']);
redirect******************************************************
}
else
{
echo ('Failed to update news');
}
}