- Posts: 2
- Thank you received: 0
Hi,
With Cardview, I don't understand how can I display an image from a link stored in mysql table.
Exemple :
table.uri = www.sitename/kdskj.jpg
How can I use the <img src=table.uri> ?
Regards,
Ben
Please Log in or Create an account to join the conversation.
Hi,
You can either modify your data, so that you have whole html tags in your database, or you can create a database view that wraps your data in html tags.
You should run something like
CREATE VIEW myview AS SELECT field1, field2, field3, CONCAT('<img src="', image_field, '" />') FROM mytable
Please Log in or Create an account to join the conversation.
OK, perfect.
Thank's
Please Log in or Create an account to join the conversation.