I hope this is the appropriate forum for this question. If not I apologize
I'm trying to put a locally stored pic in a phpmyadmin db table. Not upload it to the db but put the path in the text field of the profile pic category. I can paste the link to a web photo in the text field area and it works fine, so my script is working, but for some reason I get the broken photo icon and not the photo when I use the local path in the same way that a web address works.
I've used /opt/lampp/htdocs/[site name]/img/name.png and that doesn't work.
I've tried localhost/[site name]/img/name.png and that doesn't work either.
Some research got me to set the type as LONGBLOB and store the photo in the db, but that doesn't work either.
Is there a special format for local paths that needs to be used? I can't find anything about that if there is.
like I said - a url to an online photo works but I can't get a local path to work. Any guidance? TIA