PHP upload image

前端 未结 10 2483
不知归路
不知归路 2020-12-06 01:46

Alright I have way to much time invested in this. I am new to PHP programming and trying to grasp the basics, but I am a little lost as of last night I was able to get a PHP

10条回答
  •  难免孤独
    2020-12-06 01:59

    Change function file_get_content() in your code to file_get_contents() . You are missing 's' at the end of function name. That is why it is giving undefined function error.

    file_get_contents()

    Remove last unnecessary comma after $image filed in line

    "INSERT INTO content VALUES         ('','','','','','','','','','$image_name','$image',)
    

提交回复
热议问题