Problem with page navigation

Thread Solved

Join Date: May 2008
Posts: 90
Reputation: Suhacini is an unknown quantity at this point 
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

 
0
  #21
Jun 4th, 2008
I think some wrong with this :
  1. <?php
  2.  
  3. if (isset($_POST['submit'])) {
  4. $var = trim($_POST['keyword']);
  5. header('Location: pageno.php?keyword='. $var);
  6. die();
  7.  
  8. }
  9. ?>
Because I tried to print $var but nothing is displayed.and in the code we need this keyword.As a result the final output is also empty... Its working for you but Why is it not working for ME
Last edited by Suhacini; Jun 4th, 2008 at 4:49 am.
Suhasini
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: Problem with page navigation

 
0
  #22
Jun 4th, 2008
use the new code i posted. i got rid of that.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 90
Reputation: Suhacini is an unknown quantity at this point 
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

 
0
  #23
Jun 4th, 2008
hmmm....Finally its working.Thanks a lot.
To get First ,Prev,Next,Last... what can i do?
Suhasini
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,227
Reputation: kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about kkeith29 has a spectacular aura about 
Solved Threads: 167
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Nearly a Posting Virtuoso

Re: Problem with page navigation

 
0
  #24
Jun 4th, 2008
i'll let you figure this one out.

heres what i will tell you.

Prev = $page - 1;
Next = $page + 1;
First = 1 (first page)
Last = $pages (total number of pages)

i think you will be able to add this to the code.
Last edited by kkeith29; Jun 4th, 2008 at 6:32 am.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 90
Reputation: Suhacini is an unknown quantity at this point 
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

 
0
  #25
Jun 4th, 2008
Ok..I will try
Suhasini
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 90
Reputation: Suhacini is an unknown quantity at this point 
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

 
0
  #26
Jun 4th, 2008
At last got the complete pagination along with prev & next also.Thanks to all of you who helped me.
Suhasini
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC