Menu
I was wondering when I want to save an image location on my database is better to save only the image name or save the full URL?
For example I upload: cat.jpg
In database should I save “cat.jpg” and in my HTML (PHP) write:
[code=php]<img src=”http://WEBSITE/uploads/<?php echo $image?>”>
or save “
[code=php]<img src=”<?php echo $image?>”>