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
#2
The easiest thing is to do something like a foreach loop. So the checkboxes should represent the id of the row you're trying to delete.

Let's say they're all assigned to $deleteme

Code:
foreach ($deleteme as $d){
Code:
$db->query("DELETE FROM mytable WHERE id = ?",array($d));
Code:
}

That should do it.
  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)