Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 393123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:13:36+00:00 2026-05-12T16:13:36+00:00

Id | Product Name |Color | Material ———————————— // products 1 car 1 |

  • 0
    Id | Product Name |Color | Material
    ------------------------------------    // products
    1          car    1      | 2
    2          desk   3      | 1
    3          window 2      | 3


    -----------------------
    Id | Product Color Name 
    -----------------------    // productColor
    1          red
    2          blue
    3          yellow


    -----------------------
    Id | Product Material Name 
    -----------------------    // productMaterial
    1          Metal
    2          Glass
    3          Wood

    -----------------------

I have a dropdownlist that reads from table Products and populate textboxes with specified property of material.
I use foreignKey to connect products table with data from Material and colors.
How can I populate the database with new products. ( the new products have and new materials)

New Product that will be listed in ddlist will be named phone and populates txtboxes using color(purple) and material (plastic)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:13:36+00:00Added an answer on May 12, 2026 at 4:13 pm

    If you’re picking from a predefined list of careers in your career table, the select for the career should have a visible string of the CareerName and a value of IDCareer. When the user selects one, you have the id value that goes into your insert SQL. Suppose your table is populated with an id of 3 for career Fire fighter. When the user picks Fire fighter, your SQL would put 3 in the ‘and here I’m lost’ from your post.

    If the issue is that you’re collecting new values, you must put them in first, get the id number of the newly inserted career (you’re using an auto_increment (MySQL), sequence (Oracle), or identity (SQL Server) for those IDCareer values, yes?) using whatever function returns the last inserted id value, and put that in your ‘and here I’m lost’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking to implement a similar url as stackoverflow to an eshop: http://wwww.shop.com/products/123123/product-name
Am having some products in my web service. I am getting the product name
I have an XML file with these nodes: <Product> <Name>... <Color>... <Price>... </Product> I
I have a table with column for storing product code. | product_id | Product-name
I need some help. I am trying to shorten a full product name from
jQuery('ol.productList li.product input[name*=cart.pAsin.]').load().each(function(){ // each function var asinId = jQuery(this).val(); var pUrl = jQuery(this).siblings(a).attr('href');
Given the following object: public class Product { string Name {get;} int Quantity {get;}
I have there mysql table: **product (id,name)** 1 Samsung 2 Toshiba 3 Sony **attribute
I have a PRODUCTS table, and each product can have multiple attributes so I
I have the following: Product name and right after form and submit button. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.