Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81687

The plugin returns positive decimal values to negative

$
0
0
I have a mysql table that has a column of positive decimal numbers. I test this with my select and even an echo via php. Its positive alright.

I setup a naked page with one column and did a setup of the plugin.


var dTable = $('#ranking').dataTable( {
"bProcessing": true,
"bServerSide": true,
"aaSorting": [[ 2, "desc" ]],
"aLengthMenu": [
[10, 25, 50, 100, -1],
[10, 25, 50, 100, 'All']
],
"iDisplayLength" : -1,
"sPaginationType": "full_numbers",
"sAjaxSource": "include/server_processing_manager.php"
} );
} );


the server_processing_php is

$aColumns = array( 'hourly_avg');

the rest is default. All files are included. Yet the column has negative decimal numbers

Viewing all articles
Browse latest Browse all 81687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>