/    Sign up×
Community /Pin to ProfileBookmark

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:student-list.php?id=1”); , it also dosent give me any error.

1) link page : href=”student-list-pagination?name=all”

2) Student list pagination.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

I removed every unused Space Before The Header location . but it also wont work .
And i also get $_SESSION[‘allstudent’]=$all Data but i want that data for student-list page before i called header function

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @AmitArt3193 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...