How to save/update all selected multiple dropdown selected values into myphpadmin database Codeignitor

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
gidgor256
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Mar 31, 2021 1:42 am

Wed Mar 31, 2021 1:51 am

with the table above (using Ajax or better recommendation)
When the 'save all' button is clicked all individual selected values in the dropdown are inserted into the dB and when 'update-all' is clicked the dB values are all updates.
For all the search, I get for only one dropdown and I don't know to use that for all dropdown at ago.
I really do not know how to go about it.
links, demos and examples will be good
saving all dropdown selected list at ago.JPG
saving all dropdown selected list at ago.JPG (46.31 KiB) Viewed 522 times
gidgor256
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Mar 31, 2021 1:42 am

Fri Apr 02, 2021 2:04 am

gidgor256 wrote:
Wed Mar 31, 2021 1:51 am
with the table above (using Ajax or better recommendation)
When the 'save all' button is clicked all individual selected values in the dropdown are inserted into the dB and when 'update-all' is clicked the dB values are all updates.
For all the search, I get for only one dropdown and I don't know to use that for all dropdown at ago.
I really do not know how to go about it.
links, demos and examples will be good
saving all dropdown selected list at ago.JPG

Code: Select all

$('.remsubmit').click(function() {
                            var indexid= "<?=$indexid?>";
                            var name = $(this).prop('id');
                            var emailid = "<?=$emailid?>";
			    var remarks="";
                            
                            
                           var x = document.getElementById("mySelect").selectedIndex;
                             var y = document.getElementById("mySelect").options;
                           remark = y[x].text;
this insert the selected value of the first dropdown

when submit for the index 2 or 40 is clicked the value selected in the remark dropdown of the index one is reapeated for them
how can i make it a loop
Post Reply