close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

recordset issue

Thread began 7/01/2013 11:35 am by Jamie | Last modified 7/02/2013 7:37 am by Jamie | 2092 views | 11 replies |

Jamie

recordset issue

Hi Jason

I was just wondering what I have done wrong on this page.

Every time I add a new recordset it stops the content from the WADAproducts recordset being rendered...

This is how it looks right now.
http://simplyfluff.com/product2.php?id=14

This is how it looks if I remove the last recordset 'YouMightLike':
http://simplyfluff.com/product.php?id=14

I have attached the products2.php page

Cheers

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is your link:
http://simplyfluff.com/product2.php?id=14

This is passing the product ID using a url variable named "id". the WADAproducts recordset is expecting the URL variable to be named "ProductID" though.

use this link instead:
http://simplyfluff.com/product2.php?ProductID=14

Sign in to reply to this post

Jamie

ah ha ... that makes sense and is also why something else was screwing up (mod_rewrite) so thats killing 2 birds with one stone! many thanks

on the same page, as you can see there are 5 main product categories... how would I filter the 'you may like' section so that it shows the 4 product categories that the featured product above them is not in?

Sign in to reply to this post

Jason ByrnesWebAssist

in the product_contents table, you would need to store the category. then add a where cluase to filter the category NOT Equal to the one from the WADAProducts recordset

WHERE productCategory != paramCat

create a new variable as:
name: paramCat
type: text
default value: -1
Runtime value: $row_WADAproducts['ProductLive']

Sign in to reply to this post

Jamie

thanks a million Jason... last question for today (I promise!)

in the backend that drives the product page, I have a product_results.php page which allows the user to reorder the items by category (you pointed me in the right ddirection for creating the sort facility). The problem is that it also has an update order function on the page and I want to hide that but only if the user has applied a filter... when they are viewing the complete product list I wnt them to be able to re-roder items

have attached the page

cheers

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

when they use the search, it is stored in a session:

$_SESSION["WADbSearch1_product_results"]


use an if statement around the update order button so it only shows if the session is not set:

<?php if(isset($_SESSION["WADbSearch1_product_results"])) { ?>
<update order button>
<?php } ?>

Sign in to reply to this post

Jamie

Hey Jason

Have done that and wrapped the update order button:

<?php if(isset($_SESSION["WADbSearch1_product_results"])) { ?>
<input type="submit" value="Update Order" name="UpdateOrder" class="btn">
<?php } ?>



but the button is showing still in both the filtered results and the non filtered results....

Sign in to reply to this post

Jamie

Have worked this one out - It was working just in the opposite so changed isset to !isset and now it works.

It has thrown up a new problem now... the reset button no adds the update button back in and to get to the fill unfilterd list of products you have to hit reset twice.... how do I get the reset to go straight to the unfiltered list of products please?

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

Jamie

PM sent

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