close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

rs problem

Thread began 1/09/2017 3:56 pm by Jamie | Last modified 1/11/2017 1:43 pm by Ray Borduin | 473 views | 6 replies |

Jamie

rs problem

Hey Ray

Could you give me a hand with a recordset please?

On the attached product_update.php page the Categories rs is adding the parent category name in front of the sub category name (line 733) and on the product_results.php page (also attached) I am trying to do the same on line 351 but cannot get the WADAproducts rs to allow the parentcategory name as well as the sub category.

cheers

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

If you update your recordset on line 151 to:

SELECT products.*, productcategories.*, productmanufacturers.*, productcategories_2.CategoryName AS parentcategoryname FROM  FROM products LEFT JOIN productcategories ON products.ProductCategoryID = productcategories.CategoryID LEFT OUTER JOIN productcategories AS productcategories_2 ON productcategories_2.CategoryID = productcategories.CategoryParentID LEFT JOIN productmanufacturers ON products.ProductManufacturerID = productmanufacturers.ManufacturerID


Then you should be able to refer to the parentcategoryname column when you need to below.

Sign in to reply to this post

Jamie

cheers Ray but unfortunately that errors with the following:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'productcategories LEFT OUTER JOIN productcategories AS productcategories_2 ON pr' at line 1



SELECT products.*, productcategories.*, productmanufacturers.*, productcategories_2.CategoryName AS parentcategoryname FROM products LEFT JOIN productcategories ON products.ProductCategoryID = productcategories.CategoryID productcategories LEFT OUTER JOIN productcategories AS productcategories_2 ON productcategories_2.CategoryID = productcategories.CategoryParentID LEFT JOIN productmanufacturers ON products.ProductManufacturerID = productmanufacturers.ManufacturerID
Sign in to reply to this post

Ray BorduinWebAssist

Sorry I had a typo... I think it should have been:

SELECT products.*, productcategories.*, productmanufacturers.*, productcategories_2.CategoryName AS parentcategoryname FROM  FROM products LEFT JOIN productcategories ON products.ProductCategoryID = productcategories.CategoryID LEFT OUTER JOIN productcategories AS productcategories_2 ON productcategories_2.CategoryID = productcategories.CategoryParentID LEFT JOIN productmanufacturers ON products.ProductManufacturerID = productmanufacturers.ManufacturerID
Sign in to reply to this post

Jamie

cheers Ray. Now its not erroring but parentcategoryname is not showing in the bindings at all (and have refreshed etc)....

Sign in to reply to this post

Ray BorduinWebAssist

Have you tried typing it in manually after dragging a different column?

It looks like it is there. I'm not sure why it wouldn't show in the bindings.

Sign in to reply to this post

Jamie

hmmm I had done that and it didnt work.

checked again this morning and its working fine..big thanks

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