How to display image from database using php

前端 未结 11 2718
闹比i
闹比i 2020-11-27 21:43

I am trying to display an image coming from the database and I was not able to display the image .but its showing like this user-1.jpg Please see my code can on

11条回答
  •  一个人的身影
    2020-11-27 22:11

    put this code to your php page.

    $sql = "SELECT * FROM userdetail";
    $result = mysqli_query("connection ", $sql);
    
    while ($row = mysqli_fetch_array($result,MYSQLI_BOTH)) {
        echo "";
        echo "

    ".$row['text']. "

    "; }

    i hope this is work.

提交回复
热议问题