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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -