How to Fetch / Display an IMAGE from DataBase using PHP Mysql

preview_player
Показать описание
Here.. In this Video.. we are retrieveing or fetching the image and Displaying it from database using PHP code.
Рекомендации по теме
Комментарии
Автор

Much helpful bro, 9 hours on just a from i couldn't pull through but your video help, now am going to sleep.

freddiegrandyanc
Автор

My go to channel for php thanks for sharing your knowledge

creativeyes
Автор

Thank you bro. You're a life saver 😂🙌

michaelmathew
Автор

Thanks brother, this content is pure gold. You help me so much :)

jesuscuadro
Автор

Thanks Sir I Total Opretion Lern For You Are You Tube Channel Thanks Best Of Luck

vishaljagdhane
Автор

Thanks a lot, even ChatGPT didnt know how to solve this, u showed it correctly lol

samarthbharadwaj
Автор

Thank you so much bro <3 i got it < 3

mathewdalisay
Автор

hi is it possible for you to make a tutorial on how to download these files aswell with their original file extension because i realized all we need to do is figure out how to change the extension on download

mangoz
Автор

Dear, have you accounts software for school or university?

KashifAli-tfrc
Автор

Hello, can you please show us how to zoom-in the picture (took from the data-base) in another page using a link (<a href="..." target="_blank" ><img src="..." alt="..." ></a>)

nadafarahamrouche
Автор

Parse error: syntax error, unexpected end of file in showing last line

nitish
Автор

how ican create search bar which my search artist videos from the database using php and mysqli

omarykijogoo
Автор

Nice video. But I already know how to do that. It is relatively easy. But what I care to know is. Once you have retrieved the images from the database table and displayed it on a screen. How can you make each image clickable so that only the data from the table where the image is stored is displayed.

jeankaleb
Автор

Awesome it works. What about inserting?

absalomojiem
Автор

For those of you getting the error "mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool "
for the connection & while loop you can try the following line of codes

$conn = mysqli_connect("localhost", "root", "", "db_name");
$sql = "SELECT * FROM table_name";
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_array($result))

It worked for me. hope it works for you guys as well.

migdhaam
Автор

Can i insert the code for audio files the same way?

petra_bunic
Автор

Bro, I'm your subscriber. Now I need your help to retrieve the same content procedure using search. I mean to say it should be able to retrieve like students marksheet with photo. Thank you in anticipation.

TECLOVENIA
Автор

image isnt displaying else all other data is dislayed plss help

kadirgodil
Автор

I made this example, but as I have many records in the database with photos, it doesn't work. It gives the error "Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2893560 bytes)".

NiltonOliv
Автор

image is not showing, what can be the reason? My code is: echo '<img src="data:image;base64, '.base64_encode($row['file']).' " alt="' . $row['bildtext'] . '">';

StephanPetrowitsch