my code is in php, I wanted to create a pop up window when I push the delete button, that asks for confirmation for delete. As I read on internet I create a pop up window with java script like
if (confirm('<?php echo "sure to delete data from $start to $end for device $eui?" ?>') == true) {
var text ='<?php delete($eui,$start,$end,$Nrows);?>';
} else {
//nothing
}
if we push ok on the pop up it should run delete function(that is in php an in charge of deleting the data) if cancel, nothing. but anyway it runs the delete function and deletes the data.
Can you please help me how to make this correctly?