i need to show an image in datatables row.
i use server processing example.
i 've add image field in my database, but i don't how write code to display it in datatables rows ?
yse i think but i neewbies and i don't where in PHP code of this example: http://www.datatables.net/release-datatables/examples/data_sources/server_side.html
Replies
Then you could use this approach http://www.sweeting.org/mark/blog/2005/07/12/base64-encoded-images-embedded-in-html
non, j'ai mis un lien url vers une image dans un champ type VAR...
[code]
if ( $aColumns[$i] == "version" )
{
/* Special output formatting for 'version' column */
$row[] = ($aRow[ $aColumns[$i] ]=="0") ? '-' : $aRow[ $aColumns[$i] ];
}
[/code]
in the Server side (PHP) code
e.g.
[code]
if ( $aColumns[$i] == "name-of-image-column-here" )
{
/* Special output formatting for 'image' column */
$row[] = '';
}
[/code]
thanks