The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array Delete
#1
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

  Reply


Messages In This Thread
Array Delete - by MHALL1 - 06-14-2017, 05:10 PM
Array Delete - by mudmin - 06-14-2017, 06:27 PM
Array Delete - by MHALL1 - 06-17-2017, 08:17 PM
Array Delete - by faguss - 06-18-2017, 01:00 PM
Array Delete - by mudmin - 06-18-2017, 03:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)