Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67497

How to display LongBlob Image from Mysql with php [duplicate]

$
0
0

This question already has an answer here:

$con= mysqli_connect("host", "user", "password", "database");  
session_start();
if(isset($_SESSION['username'])){
    //echo 'Hi! '.$_SESSION['username'];
}
if(isset($_GET["name"])){
    $n= "SELECT * FROM `users` WHERE `user_name`='".$_GET['name']."'"[0];
    $r= mysqli_query($con, $n);
    if($r){
        while($row= mysqli_fetch_assoc($r)){
             echo $row['Full_name'];
             echo $row['profile'];
    }
    }
}

Here is my Code. When I run it it just shows scrambled lines(!!) What can I do to display the images which are saved as Longblob in mysql database.

This is a web-based project, coded in cpanel hosting. I tried some solutions but they didn't work. I think the problem happens in the links


Viewing all articles
Browse latest Browse all 67497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>