Q
Q
qu1kgg2019-04-21 16:33:43
PHP
qu1kgg, 2019-04-21 16:33:43

How to output data from a db column?

please tell me, is there an img column in the database and the name of the pictures in it:

["\/photo\/4324-img-1.png","\/photo\/54352-img-2.png","\/photo\/32134-img-3.png","\/screens\/5324-img-4.png","\/photo\/12213-img-6.png"]

How to output image data in the form:
/photo/4324-img-1.png
/photo/54352-img-2.png
And so on, as I understand it can be done via json, but I don’t understand how

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orbitter, 2019-04-21
@qu1kgg

You get a column from a DB.
Let's say you have it in the $my_images variable.
Next:
That's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question