query("INSERT INTO `category` (`name`, `status`) VALUES ('$name', $status)"); if ($insertCategory) { showSweetAlert('success', 'Data Saved'); } else { showSweetAlert('error', sanitizeData($connection->error)); } } } ?>
| ID | Name | Status | Created At | Action |
|---|---|---|---|---|
| id ?> | name ?> | status == 1 ? ' Active' : 'Inactive' ?> | created_at ?> | id ?> |