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

Results page is incorrect

Thread began 11/13/2013 6:11 pm by Paul | Last modified 12/27/2013 5:44 pm by Ray Borduin | 1601 views | 34 replies |

Paul

Results page is incorrect

I am having an issue on my results page.

From the home page: www.centurymachinery.com/default.php I have all the test products coming up the way I want them. But when I click on any product, it goes to the correct products_results page, but it lists them all.

Also, from the products_results page, if I click on one of the products, it goes to the products_detail page and shows the correct prodID= in the address bar, but the page is empty.

Appreciate any help.

Sign in to reply to this post

Jason ByrnesWebAssist

send copies of the pages please.

Sign in to reply to this post

Paul

Here you go!

Sign in to reply to this post

Jason ByrnesWebAssist

the recordsets on your pages do not have any filtering.

you need to configure tho filter using the URL Variables that are being passed.

Sign in to reply to this post

Paul

Jason,

I was able to fix the link under the menu tab "Products" so that the items go to the products_detail.php page and correctly populate the page.

But I realized that the list of products on the home page, should go directly to the products_detail.php page, not the results page.

So I changed the href in the following code on the default.php page to go to the products_detail page and the words: &search-Search are showing up in the URL, so it is not populating the page properly.

<a href="products_detail.php?prodName=<?php echo $row_rsProducts['prodName']; ?>&Search=Search"><?php echo $row_rsProducts['prodName']; ?></a>

Can you assist, please?

Sign in to reply to this post

Jason ByrnesWebAssist

the link to the details page should pass the ProductID as a URL variable, not the product name

on the detials page, you should set the recordset to filter the ProductID column using the Product ID URL Variuable in the link.

Sign in to reply to this post

Paul

I was able to figure out how to make the changes you said, but on the product_detail.php page I get this:

Parse error: syntax error, unexpected ')' in /webroot/c/e/centu002/primary/www/products_detail.php on line 48

Line 48 refers to the $colname_rsProducts = ;

if (isset()) {
$colname_rsProducts = ;
}

Thoughts?

Sign in to reply to this post

Jason ByrnesWebAssist

edit the recordset, use advanced view and edit the colname variable, set the run time variable to use the URL variable, for example if the URL Variable name is productID:
product_details.php?productID=4

then the run time value for the colname variable should be:
$_GRT['productID']

Sign in to reply to this post

Paul

Jason,

Somehow, I had 3 Recordset (WADAproducts) in the Server Behavior panel. I deleted 2 of them and also deleted the syntax error I was getting on line 48:
if (isset()) {
$colname_rsProducts = ;
}

The page didn't crash, but I am still getting an empty page in the products_detail.php page.

I've attached a screen capture of the advanced view when I edit the rescordset.

Funny thing...I have the items on the home page: http://centurymachinery.com/default.php go to the products_detail.php page and the page comes up blank. On the menu page "Products", I have those items also go to the products_detail.php page and they come up except they are all showing product 1.

Any thoughts?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post
loading

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...