I have a php function which get the Details when passed an number .So, i have a dynamic table where each row contains insert button which performs some action on the row record .Now Here i have to call php function getdetails and pass the data-number and get the details from the function and create an array insert in to session
$(".bttn_insert").live('click',function(){
var data-number = $(this).attr('data-number');
//Now Here i have to call php function getdetails and pass the data-number and get the details from the function
and create an array insert in to session
<?php getdetails('data-number'),?>
});