I have a <a href="javascript:void(0);" class="justificar" data-value="<?= $l->img_id?>">
that when clicking, I need to bring a data from the database, but I do not know how to pull this data to the screen. My code is in codeigniter, and when you click on <a href>
it calls this class :
$(document).on('click','.justificar', function(){
var t = $(this);
$.SmartMessageBox({
title : "<?= $this->lang->line("con_inflaud_jus_msg_title"); ?>",
content : "<?= $this->lang->line("view_relat_iten_title_jus"); ?>",
buttons : "[<?= $this->lang->line("con_inflaud_jus_msg_btn_ok"); ?>]",
}, function(ButtonPress, Value) {
if(ButtonPress == "<?= $this->lang->line("con_inflaud_jus_msg_btn_ok"); ?>"){
return 0;
}
});
});
How do I get the data from the database