Checkbox - ID - SQL Problemi
1
●120
- 24-11-2024, 03:42:59En basit haliyle örneklendiriyorum.
html:
<input type="checkbox" name="id[]" value="<?=$record->id?>" />
php:
$deleted_records = implode(',', $_POST['id']); $db->query("DELETE FROM table WHERE id IN (".$deleted_records.")");