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

display image using mdata

$
0
0
Hello. I am trying to display images from my mysql db. I am using this code that I have read in the forum but doesn´t works:

 $('#example').dataTable( {
					"bProcessing": true,
					"bServerSide": true,
					"sAjaxSource": "scripts/server_processing.php",
					mData: [4], // id column - string here, could be an integer if you are using plain arrays
mRender: function (d, type, row) {
  return '<img src="'+d+'" />'; // d is the id
}
										})

Viewing all articles
Browse latest Browse all 82117

Trending Articles



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