0) { $changes = delete_device($db_link, $id); if (empty($changes)) { $all_ok = false; } } } echo $all_ok ? 'Success!' : 'Fail!'; } ?>