Answer the question
In order to leave comments, you need to log in
Displaying a picture from a folder by name, if there is such a name in Mysql. Is it possible?
Pictures are generated randomly and saved with different names to the imagejpeg($jpg_image,"img/$item->title.jpg"); , it is not possible to display a picture on the screen if the title from the database corresponds to the title in the folder, broken pictures are obtained in the loop.
foreach ($products as $item){
echo '<img src="img/$item->title.jpg">';}
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question