Page 1 of 1
DataTable with row image?
Posted: Sun Apr 12, 2020 7:39 am
by tavitooo
HI I have a table but I need add a image in a row is possible it?. In my sql server I have the link for example:
https://ae01.alicdn.com/kf/HTB17jEIc6fg ... pg_q50.jpg
But when I list it I see all the link but not the image.
Please how I can do it?.
Thanks
Re: DataTable with row image?
Posted: Sun Apr 12, 2020 9:03 am
by Pablo
I'm sorry, I do not have a standard solution for this. This will requires a custom script.
But you can try to put HTML code in the database field, like this:
Code: Select all
<img src="http://yourwesbite.com/filename.jpg">
Re: DataTable with row image?
Posted: Sun Apr 12, 2020 10:02 am
by tavitooo
THanks,
I put that code in sql and is ok it show the image in the list (extention: DataTables) I put size html and is better thanks for that.
OK now I have the Login "Admin" and when I go to Edit (I actived Avatar) I upload a image and it save in sql for example 607001_01.jpg I need to know if is possible when I click on save button it rename with <img src="http....607001_01.jpg ?
For example I manually change it but I need automatic when I click on button save:

Re: DataTable with row image?
Posted: Sun Apr 12, 2020 10:17 am
by Pablo
I'm sorry, I do not have a standard solution for this. This will require a custom script.
For me, it may also take several hours or longer to implement such a script.