mysql - PHP insert image upload url in database -


i have 2 way insert image upload url in mysql database:

one:(only filename)

1410468094_shutterstock_130757219.jpg

two:(full url)

http://localhost/nws/uploads/files/1/shutterstock_130757219.jpg

which way better?

file name best cause if anytime change folder name or location .


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -