I have stored the path of the image in the database, but how should I write the background code to display the image in the foreground? It is not an upload function, but a function of getting the image from the database and displaying it in the foreground.
.
. 2018-05-01 12:32:43
0
3
2069

I have stored the path of the image in the database, but how should I write the background code to display the image in the foreground? It is not an upload function, but to obtain the image from the database and display it in the foreground.

.
.

reply all(2)
嘉俊

Just add the full path directly to the view template

一笑而过

Get the image path from the database: select path field form table name to query all data, directly pass the obtained data into the view and traverse it in the img tag

  • reply There is no need to splice the suffix of this picture. Do I need to splice the suffix only when uploading and downloading? I got this mixed up, thinking I also had to splice the suffix.
    . author 2018-05-01 17:56:03
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template