Jump to content

Help with a Select Dropdown Categories


mickk80

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.