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