Cita:  
					Iniciado por petit89  
  añade una linea mas donde imprimas lo que el compañero te mostro:
    
Código Javascript
:
Ver original- html_user += '<td  style="'+item.style+'">'+data.length+'</td>'; 
imprimiendo 
data.length obtienes el numero.
   Gracias petit89 pero no me lo hace.    
Código Javascript
:
Ver original- function filtrar() 
- { 
-   
- $.ajax({ 
- data: $("#frm_filtro").serialize()+ordenar, 
- type: "POST", 
- dataType: "json", 
- url: "ajax.php?action=listar", 
- beforeSend:function(){ 
- $('.loader').css({display:'block'}); 
- }, 
- complete: function() { 
-          $('.loader').css({display:'none'}); 
- }, 
- success: function(data){  
-  var html_user ='' ; 
-  if(data.length > 0){  
- $.each(data, function(i,item){  
-   
- html_user += '<tr id="fila1">'; 
- html_user += '<td style="'+item.style+'"><input  onClick="marcar(this)" name="demo" type="checkbox" value="' + item.id_aviso + '"/></td>'; 
- html_user += '<td  style="'+item.style+'">'+item.id_aviso+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.telefonos+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.name+' '+item.apellidos+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.calle+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.localidad+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.aparatos+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.marcas+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.modelo+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.codigo+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.serie+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+item.facturacion+'</td>'; 
- html_user += '<td  style="'+item.style+'">'+data.length+'</td>'; 
- html_user += '</tr>'; 
-   
-   
-   
- }); 
- }  
- if(html_user == '')  
- html_user = '<tr><td colspan="4" align="center">No se encontraron registros..</td></tr>'; 
- $("#data tbody").html(html_user); 
- $('#carga').html('');