1
나는 ajax jquery와 php에서 datatables plugin을 사용하여 테이블을 만들었습니다. 공개, 게시 취소를 보여주는 상태 열이 있습니다. 총 레코드 수, 게시되지 않은 총 및 게시되지 않은 총 수를 표시하고 싶습니다.이 작업을 수행 할 수 있습니까? 여기데이터 테이블에 다른 레코드의 합계
난 당신이 (내가 있으리라 믿고있어) SQL 데이터베이스에 대한 쿼리에 SUM
기능을 사용 할 수 있습니다
var oTable = $('#listings_row').dataTable({
"iDisplayLength": 25,
"iDisplayStart": 0,
"bProcessing": true,
"bServerSide": true,
"sPaginationType": "full_numbers",
"sAjaxSource": "ajax_files/server_processing_rentals.php",
"fnRowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull) { return nRow;
}
});
나는 대신 서버에 요청을 보내고 그것을 얻을 datatable에서 그것을 얻고 싶습니다 ..... – Methew