how can i add data into my database when the table that will be opened depends on the drop-down menu that the user chooses.

Each option in the drop down box will have a value you. When the user submits the form with the drop down box, you can determine what the value of the drop down box is, and then from there take the appropriate course of action.

Good Luck,
ProFreelance

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.