Jangga
Junior Member
- Aug 8, 2016
- 196
- 11
little confused. can you clarify
profile/paul k 23445667788744.jpg is what is output from your database? So what should the correct filename look like? Full path (excluding domain)
the advice about escaping the whitespace above is probably pointless.
your browser will do this automatically. eg click here
as you say this works on another page but not on this one then that implies its the code thats wrong not how its stored in the db
It does sound like a relative url problem. How does the full path to the jpg compare to the one echo'd from the db?
Test it - Add another line to your code to echo a <a> tag with your db url as the href. Then click it see what you get and how that compares with what it should be.
Thanks.
Without my domain name, the path to image is
public_html/profile/paul k 23445667788744.jpg
In the database, image is stored as
profile/paul k 23445667788744.jpg
Using chromo to inspect the element, img src is
paul k 23445667788744.jpg
It does seem having a broken image is uncalled for.
When I output a <a> it seem okay to.