in my localhost a pagination links working but in live server it wont it stuck
when i click to link and its also display data in print_r() function but it wont redirect to my list page , i am stuck on header("location:list.php?id=1"); , it also dosent give me any error.
1) link page : <a href="student-list-pagination?name=all">list</a>
2) Student list pagination.php
<?php include("config.php");?>
<?php include("header.php");?>
<?php
if($_REQUEST['name']=='all')
{
$q=mysql_query("SELECT * FROM userdata ORDER BY id DESC",$con);
while($row=mysql_fetch_array($q))
{
$all[]=$row;
}
$_SESSION['allstudent']=$all;
header("location:student-list.php?id=1");
}
?>
after that $_SESSION['allstudent'] data is printed but wont redirect on student-list page...
please give me a advise ...thanku