Listbox multiple selection insert with Dreamweaver MX and PHP/MySQL
Multiple record insert with listbox (multiple) selection.
Hi,
I am a beginner in PHP programming but I love this language.
I am looking a PHP procedure to insert multiple records into a table using a listbox multiple selection.
Actually I have:
1. One table named SLOTBASE with the COD_SLOTBASE and DES_SLOTBASE fields just populated;
2. One table named COMPONENTI with the COD_COMP, DES_COMP and COD_SLOTBASE fields.
I have, also, a form with two textfield (COD_COMP, DES_COMP) I use to insert the data and one listbox populated with a query on the SLOTBASE table.
What I would like to do is to insert, with a multiple selection on the listbox, more records with the same data in COD_COMP and DES_COMP fileds and many different data in COD_SLOTBASE.
Thank you.
gmgm.
Comments
Be the first to write a comment
You must me logged in to write a comment.