close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Search Results "Next Page" button not showing results

Thread began 8/06/2014 10:42 am by Nick | Last modified 7/24/2015 8:11 pm by Ray Borduin | 1759 views | 8 replies |

Nick

Search Results "Next Page" button not showing results

Hi,
For some reason, the first page of search results displays perfectly. However, I know for a fact that there are over 3400 entries in the table, and when I click the "Next Page" button, it displays a "No Results Found" page. I noticed that in the url, the line that dictates the number of table rows is set to 0, like this: totalRows_WADAtblHorse=0. I snooped around a little in the PHP code but it was beyond me and I couldn't find a fix. Can anyone help?
Thanks in advance,
Nick
Links: http://www.winnerdigital.net/databridge

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the tblHorse_results.php page please.

Sign in to reply to this post

Nick

Thank you for your prompt reply, sending it in the attachments.

Sign in to reply to this post

Jason ByrnesWebAssist

I Dont see a problem in the code, I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Nick

Sure thing:

Sign in to reply to this post

Jason ByrnesWebAssist

i updated the results page to fix the probelm, this peace of code was before the recordset:

<?php
$currentPage = $_SERVER["PHP_SELF"];
?>
<?php
$queryString_WADAtblHorse = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_WADAtblHorse") == false &&
stristr($param, "totalRows_WADAtblHorse") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_WADAtblHorse = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_WADAtblHorse = sprintf("&totalRows_WADAtblHorse=%d%s", $totalRows_WADAtblHorse, $queryString_WADAtblHorse);
?>



I moved it to be after the recordset.

Sign in to reply to this post

Nick

Fixed!

Thank you so much, worked like a charm!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Charles

This post was helpful to me as I encountered the same problem(a year later than Nick) and moving the chunk of code you identified fixed it. Thank you.
Meanwhile, it seems that DA for Product Admin needs to be fixed to put that code in the right place when it generates the products_results page the first time. Maybe something to put on your list for next release? Just a thought . . .

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...