if(($row["status"])!="valid")
{
$stats=$row["status"];
echo "<script type='text/javascript'>";
echo "alert('Your Status is $stats..Please Try Again Later...');";
echo "</script>";
header ("location: index.php");
}
it is a part of a php code. if i use // before header, javascript run..but when i don't use // , it goes to directly index.php. what is the solution?? OR is there is any way that i can call a javascript function for showing a message from this if condition??