mickk80 Posted June 9, 2015 Share Posted June 9, 2015 Hi there, i have 3 tables (Products, Category and Brand) In the Products table there is a brandid and categoryid. When i am in the edit page in the CMS the dropdown for each category and brand doesn't show the correct ones. The ids are in teh Products table but it just shows the first one of each. Please could someone help. Code is attachededit-product.php Quote Link to comment Share on other sites More sharing options...
ginerjm Posted June 9, 2015 Share Posted June 9, 2015 If you post the RELEVANT code here (not the whole 16kb) we could help you by looking at it Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted June 10, 2015 Share Posted June 10, 2015 it's also not clear from your description what result you are getting and what result you expect. please post something showing what output you are getting now and what exactly is wrong with it. i suspect that you want to 'pre-select' the current choice in the category and brand select/option menus, but that's just a guess. btw - DreamWeaver isn't a very good tool for anything let alone server-side coding, like php. of the 500 lines of code you have, there's only about 300 lines that are doing anything useful. the other 200 are either duplicating something or are not contributing anything to the result. and until you can produce code that does what you want, there's no point in trying to create a page that has nearly 40 different javascript features on it. stick to getting the basics working first. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.