N
N
Natalia2018-06-01 15:15:45
PHP
Natalia, 2018-06-01 15:15:45

How to retrieve an image from a database?

How to display a picture + description from the IMAGE table. If there is no picture, only description. And vice versa.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gamzin, 2018-06-01
@archdimangel

It's simple, friend. In a database, the table of interest must have two rows. One, for example, with a url link to an image on the server. And the second with a description of this picture.
You know how to extract information from the database, I'm sure. So on the page, using the programming language you use, you check with if if the cell is not NULL. If not NULL, then output. =) I gave you the vector of thought.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question