DataTable with row image?

Issues related to forms.
Post Reply
tavitooo
 
 
Posts: 16
Joined: Sun Apr 12, 2020 7:34 am

DataTable with row image?

Post 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
User avatar
Pablo
 
Posts: 23404
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: DataTable with row image?

Post 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">
tavitooo
 
 
Posts: 16
Joined: Sun Apr 12, 2020 7:34 am

Re: DataTable with row image?

Post 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:

Image
User avatar
Pablo
 
Posts: 23404
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: DataTable with row image?

Post 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.
Post Reply