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

后端 未结 4 1767
耶瑟儿~
耶瑟儿~ 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条回答
  •  -上瘾入骨i
    2020-12-22 13:46

    Try changing:

    $image = mysql_query("SELECT * FROM blog WHERE id=$id");
    

    to:

    $image = mysql_query("SELECT * FROM blog WHERE id = '$id'");
    

提交回复
热议问题