First and foremost, you need to create an available modal (which can be a Bootstrap modal).
<div class="modal fade" id="flagtick_modal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
...
</div>
</div>
Next, we will select tag a to associate with the modal and enable its opening functionality.
<a href="javascript:void(0);" data-toggle="modal" class="flagtick_tag" data-target="#flagtick_modal"
data-param="update"
data-flagtick_id="<?php echo $row['id']; ?>"
style="text-decoration: none !important; cursor: pointer;">
</a>
Then, represent the logic above as a JavaScript script:
$(document).on('show.bs.modal','#flagtick_modal', function (event) {
let el = $(event.relatedTarget);
let param = el.data('param');
if (undefined !== param) {
}
});