User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,048 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,522 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 707 | Replies: 25 | Solved
Reply
Join Date: May 2008
Location: Hyderabad,India
Posts: 89
Reputation: Suhacini is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

  #21  
Jun 4th, 2008
I think some wrong with this :
<?php

if (isset($_POST['submit'])) {
	$var = trim($_POST['keyword']);
	header('Location: pageno.php?keyword='. $var);
	die();
	
}
?>
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 3:49 am.
Suhasini
Reply With Quote  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 547
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 55
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Posting Pro

Re: Problem with page navigation

  #22  
Jun 4th, 2008
use the new code i posted. i got rid of that.
Reply With Quote  
Join Date: May 2008
Location: Hyderabad,India
Posts: 89
Reputation: Suhacini is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

  #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  
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 547
Reputation: kkeith29 is on a distinguished road 
Rep Power: 3
Solved Threads: 55
kkeith29's Avatar
kkeith29 kkeith29 is offline Offline
Posting Pro

Re: Problem with page navigation

  #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 5:32 am.
Reply With Quote  
Join Date: May 2008
Location: Hyderabad,India
Posts: 89
Reputation: Suhacini is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

  #25  
Jun 4th, 2008
Ok..I will try
Suhasini
Reply With Quote  
Join Date: May 2008
Location: Hyderabad,India
Posts: 89
Reputation: Suhacini is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Suhacini Suhacini is offline Offline
Junior Poster in Training

Re: Problem with page navigation

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 11:38 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC