var id = $(this).find('td:first-child').text();
console.log(id);
$.post('../admin/forajax.php', { "id": id }, function( data ) {
$('.popup').html( data ); // для проверки
});
array(1) { [0]=> array(10) { ["id"]=> string(1) "2" ["namenomer"]=> string(6) "xcvxcv" ["datestart"]=> string(10) "2016-11-16" ["dateend"]=> string(10) "2016-11-30" ["nameclient"]=> string(6) "xcvxcv" ["phoneclient"]=> string(9) "xcvxcvxcv" ["datebron"]=> string(10) "2016-11-17" ["timeofbron"]=> string(8) "07:26:28" ["type"]=> string(3) "xxc" ["pay"]=> string(3) "ccc" } }
$(".molchanov").click(function(){
$.ajax({
type: "POST",
url: "../admin/forajax.php",
data: $('.formid').val(),
success: function(msg){
$('.a-info').text('Успешная авторизация')
$('.popformname').text($opredelen['namenomer'])
}
});
});
$formid = $_POST['dag']; // у input имя "dag"
$query = "SELECT * FROM main WHERE id = $formid";
success: function(msg){
$('.popformname').text($opredelen['namenomer'])
}