Advertisement

08.21.2008 at 02:24PM PDT, ID: 23668551
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

PHP Pagination

Asked by allanch08 in PHP Scripting Language, PHP and Databases

Tags:

Hello experts.

I'm trying to include a simple pagination for a search results page (similar to googles) with a <prev 1 2 3 (page numbers) next> links.

I have limited the results to each page to five.

$maxRows_rsDvdPlayerResult = 5;

The rest of the code is shown below.

So far the next and previous buttons work fine. The number links show up but don't work properly. Can anyone help? Thanks.

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
/*previous link*/
<?php
if ($pageNum_rsDvdPlayerResult > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_rsDvdPlayerResult=%d%s", $currentPage, max(0, $pageNum_rsDvdPlayerResult - 1), $queryString_rsDvdPlayerResult); ?>">&lt; prev</a>
<?php } // Show if not first page ?>
		
/*numbers link*/
<?php
for($i = 1; $i <= $totalPages_rsDvdPlayerResult; $i++){
if(($pageNum_rsDvdPlayerResult) == $i){
echo "<font color=#FF9966>$i&nbsp;</font>";
} else {
echo "<a href=\"".$_SERVER['PHP_SELF']."$pageNum_rsDvdPlayerResult=$i\">$i</a>&nbsp;";
}
}
?>
 
/*next link*/
<?php
if ($pageNum_rsDvdPlayerResult < $totalPages_rsDvdPlayerResult) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_rsDvdPlayerResult=%d%s", $currentPage, min($totalPages_rsDvdPlayerResult, $pageNum_rsDvdPlayerResult + 1), $queryString_rsDvdPlayerResult); ?>">next&gt;</a>
<?php } // Show if not last page ?>
[+][-]08.21.2008 at 02:38PM PDT, ID: 22284560

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 02:46PM PDT, ID: 22284622

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 03:11PM PDT, ID: 22284802

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 03:20PM PDT, ID: 22284880

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 03:37PM PDT, ID: 22284983

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 06:55PM PDT, ID: 22285773

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 06:57PM PDT, ID: 22285779

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.21.2008 at 11:39PM PDT, ID: 22287365

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 12:15AM PDT, ID: 22287524

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 12:43AM PDT, ID: 22287622

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 05:14AM PDT, ID: 22288934

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 05:57AM PDT, ID: 22289321

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.22.2008 at 06:52PM PDT, ID: 22295404

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, PHP and Databases
Tags: PHP
Sign Up Now!
Solution Provided By: AlexanderR
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.22.2008 at 06:53PM PDT, ID: 22295406

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.23.2008 at 03:38AM PDT, ID: 22296443

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44 / EE_QW_2_20070628