How to display image after upload in php?

后端 未结 8 2024
無奈伤痛
無奈伤痛 2021-01-14 08:30

after uploading the image to a folder. how to display the image..

its my upload.php



        
8条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-14 08:55

    You mixed up some quotes. It should be :

    $image = $_FILES["file"]["name"]; 
    $img = "upload/".$image;
    echo "";
    

提交回复
热议问题