close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple category/subcategory Adding

Thread began 3/08/2012 6:46 am by martin400112 | Last modified 3/08/2012 9:47 am by Jason Byrnes | 770 views | 1 replies |

martin400112

Multiple category/subcategory Adding

Hi,
Not sure if this is the right forum to place this post, but....

I have an issue with a client adding products to multiple categories and subcategories with an e-cart created shopping site. I have attached the files for you to see as I can't find anything wrong!

Here's how it works:

Step One: Client adds a product on the product insert page.
Step Two: The product details are sent to page 'product_categ_inset.php' which uses a multiple record insert behaviour to add the product to the various categories the product needs to reside in.
Step Three: Following the category insert, the product details are sent to page 'product_SubCateg_insert.php' for a multiple subcategory insert behaviour.

The problem is that this process seems to only work sporadically ie, when we were testing it out yesterday, we managed to insert 4 products successfully into the products, category AND subcategory tables on the database. After that, the products would insert ONLY into the product table and not the category or subcategory.

As it works initially, I am at a loss as to why this operation would fail afterwards.

Any help, much appreciated.

Many thanks,

Martin

Attached Files
product_SubCateg_insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

in the multiple insert behavior, you are binding the product ID columns to the recordset rs_product.ProductID column.

the reason this wont work is because this recordset does not have any filtering, this means that the value in the recordset will always be the first record in the database, it will not use the value for the product that was just inserted.

On the product insert page, the product ID of the record that is created gets stored in a session variable named "WADA_Insert_products".

you should that session binding for the productID columns in the multiple insert behaviors.

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