I have form in php which upload photo from computer folder to mysql database. Photos I have in a folder "img" but files added to database are without any folder. How I can change directory?
My code echo is:
echo "<center><img src=" . $row["Photos"] . "></center>";
I've tried something like this:
echo "<center><img src="/img/ . $row["Photos"] . "></center>";
but it doesn't work.
I don't have any idea where I can find solution.