06-14-2017, 05:10 PM
I have a table that contains, id and pcnumber.
I can add new entries to the DB fine however want to replicate the array delete similar to removing users / permission groups etc by selecting check boxes. I thought this would be as easy as copying what in the admin_users.php and amending the deleteUsers function however can't seem to make it work.
I can see there is a deletebyId class however I'm not sure how to make this work / if this would be a better approach.
In the source code when the page is loaded, the correct ID is shown in each checkbox field, corresponding to the correct it / pcnumber; however this breaks when I try to put the [count] part in although i wasn't sure if this was needed given the correct IDs are already being returned.
Kind of minimal information but but hopefully outlines what I'm trying to achieve.
Any help appreciated,
Thanks
I can add new entries to the DB fine however want to replicate the array delete similar to removing users / permission groups etc by selecting check boxes. I thought this would be as easy as copying what in the admin_users.php and amending the deleteUsers function however can't seem to make it work.
I can see there is a deletebyId class however I'm not sure how to make this work / if this would be a better approach.
In the source code when the page is loaded, the correct ID is shown in each checkbox field, corresponding to the correct it / pcnumber; however this breaks when I try to put the [count] part in although i wasn't sure if this was needed given the correct IDs are already being returned.
Kind of minimal information but but hopefully outlines what I'm trying to achieve.
Any help appreciated,
Thanks