Can't display image after uploading it to a data base, PHP and Mysql

后端 未结 4 1775
耶瑟儿~
耶瑟儿~ 2020-12-22 13:05

I need to do a web page for a client to upload images to a data base and display them.

I am achieve to upload the images into a database, but I\'m having trouble di

4条回答
  •  悲哀的现实
    2020-12-22 13:40

    I wouldn't store any image in a database. You should save it as file, and store the file's name in the database. You can then configure which directory an image gets served from without worrying about the full path to the image, or storing binary data in your db (yuck).

提交回复
热议问题