How do I display image path in place of $d
How do I display image path in place of $d
samadhang
Posts: 2Questions: 2Answers: 0
I want to display images in one of the column. I have added images path in database. Now what I tried is below. It displays $d instead of image path and also blank image is displayed in cells. Please help me to replace $d value with actual values in image tag.
array(
'db' => 'showimage',
'dt' => 4,
'formatter' => function( $d, $row ) {
return '<img src="$d" style="height:50px;width:50px;align:middle;"/>';
}
),
This discussion has been closed.