Тёмный

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

Funda Of Web IT
Подписаться 64 тыс.
Просмотров 115 тыс.
50% 1

Here.. In this Video.. we are retrieveing or fetching the image and Displaying it from database using PHP code.

Опубликовано:

 

15 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@creativeyes3292
@creativeyes3292 2 года назад
My go to channel for php thanks for sharing your knowledge
@freddiegrandyanc5818
@freddiegrandyanc5818 Год назад
Much helpful bro, 9 hours on just a from i couldn't pull through but your video help, now am going to sleep.
@michaelmathew3802
@michaelmathew3802 2 года назад
Thank you bro. You're a life saver 😂🙌
@jesuscuadro228
@jesuscuadro228 10 месяцев назад
Thanks brother, this content is pure gold. You help me so much :)
@vishaljagdhane762
@vishaljagdhane762 2 года назад
Thanks Sir I Total Opretion Lern For You Are You Tube Channel Thanks Best Of Luck
@coderyg9257
@coderyg9257 2 года назад
Thank You , Solved my PROBLEM ☺
@samarthbharadwaj6213
@samarthbharadwaj6213 Год назад
Thanks a lot, even ChatGPT didnt know how to solve this, u showed it correctly lol
@mathewdalisay6529
@mathewdalisay6529 3 года назад
Thank you so much bro
@user-hi9qc3fz9r
@user-hi9qc3fz9r 3 года назад
thank you!!!very useful!!!!!!!!!!
@rufatabbasov
@rufatabbasov Год назад
Thank you. It worked!
@usamanasir2965
@usamanasir2965 3 года назад
it still works great today
@migdhaam821
@migdhaam821 3 года назад
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.
@keertibhovi3727
@keertibhovi3727 2 года назад
thank you
@Woril
@Woril 2 года назад
Thank you bro!
@kawaiimonster2980
@kawaiimonster2980 Месяц назад
Thank you very much you saved me
@absalomojiem3404
@absalomojiem3404 4 года назад
Awesome it works. What about inserting?
@ane-manda
@ane-manda 4 года назад
thank you
@mangoz7929
@mangoz7929 3 года назад
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
@TECLOVENIA
@TECLOVENIA 3 года назад
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.
@Dojo2000
@Dojo2000 3 месяца назад
thanksss uuuuu !!!
@StephanPetrowitsch
@StephanPetrowitsch 4 года назад
image is not showing, what can be the reason? My code is: echo '';
@shaikhnabeel6443
@shaikhnabeel6443 3 года назад
how did you solve this error?
@StephanPetrowitsch
@StephanPetrowitsch 3 года назад
@@shaikhnabeel6443 $typ = "jpeg"; $bildname = $row['bildurl']; if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".jpg") == 0) { $typ = "jpeg"; } if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".png") == 0) { $typ = "png"; } if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".tif") == 0) { $typ = "tif"; } if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".bmp") == 0) { $typ = "bmp"; } try { $imagick = new Imagick(); $imageblob = $row2['file']; $imagick->readImageBlob( $imageblob ); //$imagick_properties = $imagick->getImageProperties('*', FALSE); $height = $imagick->getImageHeight(); $width = $imagick->getImageWidth(); if ($width > 400) { $factor = 400 / $width; $height = $height * $factor; $width = 400; } echo ''; echo $bilddaten . ""; } catch (Exception $e) { }
@shaikhnabeel6443
@shaikhnabeel6443 3 года назад
@@StephanPetrowitsch thanx bro i solved it.
@oyalidhasantopu8173
@oyalidhasantopu8173 11 месяцев назад
Onek vlo🙂
@jeankaleb
@jeankaleb 2 года назад
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.
@isaacmuteru4494
@isaacmuteru4494 2 года назад
Hello did you find the solution am also looking for this ... Can we connect via WhatsApp?
@sanadara95
@sanadara95 Год назад
Thank You
@abusufiun2343
@abusufiun2343 2 года назад
awsome
@vitvitvitvitvitvitvitvit
@vitvitvitvitvitvitvitvit 2 года назад
Thanks B)
@fanibulmau820
@fanibulmau820 11 месяцев назад
frumos!
@nadafarahamrouche9860
@nadafarahamrouche9860 3 года назад
Hello, can you please show us how to zoom-in the picture (took from the data-base) in another page using a link ()
@KashifAli-tf4rc
@KashifAli-tf4rc 5 лет назад
Dear, have you accounts software for school or university?
@collinsonyegbado309
@collinsonyegbado309 3 года назад
Its a nice video. Can you a code to print it in pdf?
@sanzidasohana1754
@sanzidasohana1754 9 месяцев назад
Nice
@navjotsingh2457
@navjotsingh2457 3 года назад
ty
@nitish1379
@nitish1379 4 года назад
Parse error: syntax error, unexpected end of file in C:\wamp64\www\g\displayimage.php showing last line
@omarykijogoo9216
@omarykijogoo9216 4 года назад
how ican create search bar which my search artist videos from the database using php and mysqli
@petra_bunic
@petra_bunic Год назад
Can i insert the code for audio files the same way?
@sofiyaabrar3783
@sofiyaabrar3783 4 года назад
Image is not shown ...instead of it cross mark over is shown 😑
@jackywan6829
@jackywan6829 Год назад
i have the same problem. did you solve it?
@katrinahew4246
@katrinahew4246 2 года назад
why don't you just post a link for us to download the code?
@kadirgodil1307
@kadirgodil1307 4 года назад
image isnt displaying else all other data is dislayed plss help
@NiltonOliv
@NiltonOliv Год назад
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)".
@graphicguru5902
@graphicguru5902 5 лет назад
undefined index error dekha rha hai??plz help...
@opticalfiber661
@opticalfiber661 2 года назад
how can i update image from mysql using php ?
@nonopanzu1193
@nonopanzu1193 Год назад
Between MySQLI and PDO which one is best? 🤦‍♂
@mwaurakennedy1705
@mwaurakennedy1705 Год назад
another one down thanks
@KashifAli-tf4rc
@KashifAli-tf4rc 5 лет назад
Images/images/field how to get image from this path plz explain i will thankful to you
@FundaOfWebIT
@FundaOfWebIT 5 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-e-vmQhNqLMM.html
@rushikeshraut4618
@rushikeshraut4618 4 года назад
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs ye error aa raha he sir plz help
@rtxcomet3681
@rtxcomet3681 4 года назад
If ke aandar dalo aur $result saath mysqli_num pass karo
@mikethebiker555
@mikethebiker555 3 года назад
@@rtxcomet3681 bro pls tell the format
@shamshad52
@shamshad52 4 года назад
image is not showing, plz help me
@jackywan6829
@jackywan6829 Год назад
followed your steps to fetch images from the database but the image cannot be displayed, the image is broken, why?
@hdpaintcode
@hdpaintcode 3 года назад
If you post it to the web, can people see your database password when they check the page source?
@god_rex579
@god_rex579 3 года назад
People will not be able to see what's written in the PHP code because all the php the code get hidden
@precillajansirani6933
@precillajansirani6933 3 года назад
Hi Sir, Im just getting the alt value only... No image is displaying
@ajaysadhu8437
@ajaysadhu8437 2 года назад
keep img save into the same folder as where your file
@aditikhandagale5551
@aditikhandagale5551 2 года назад
Is it possible to save image in database by entering path in php??
@FundaOfWebIT
@FundaOfWebIT 2 года назад
Here, it is for image upload with saving path in database. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7S42lpImZ4s.html
@andreabutalid1958
@andreabutalid1958 4 года назад
PROBLEM FIXED BY ME: ANDREA MAE BUTALID FOR THOSE IMAGES STILL NOT APPEAR IMAGE DATA TYPE (TYPE) WILL BE BLOB IN DATABASE WHILE MAKING TABLE AND INSERT YOUR DATA IN DATABASE BY UPLOADING THE IMAGE FILE IN DATABASE THANKS ME LATER HOPE YOU UNDERSTAND.
@deboparnabanerjee4185
@deboparnabanerjee4185 3 года назад
no, can you elaborate?
@omarykijogoo9216
@omarykijogoo9216 4 года назад
sorry iwant to learn how to search videos from mysql database using php and mysql help me
@FundaOfWebIT
@FundaOfWebIT 4 года назад
To Insert Video into Database u can use Upload in php ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QT2aFYbWP74.html Searching your video on the table ... by stored names u can use.. datatables ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-oOL--VASs8Q.html
@mathandinformationtechnolo1549
@mathandinformationtechnolo1549 4 года назад
Where its data base video?
@graphicguru5902
@graphicguru5902 5 лет назад
Sir image tag ka Samaj nhi aaya ...plz explain??
@FundaOfWebIT
@FundaOfWebIT 5 лет назад
Doubt pucho... tab hi I can explain... like.. ur image is nt fetched ya.. aur kch..
@sanketswami260
@sanketswami260 3 года назад
@@FundaOfWebIT hi sir it shows fatal error: Uncaught TypeError: mysqli_fetch_array():
@ntc1276
@ntc1276 Год назад
Why is only half of my picture coming out? pls😭😭
@allenbiju4966
@allenbiju4966 3 года назад
image not showing, this is my code
@sayanti1998
@sayanti1998 4 года назад
Image fetch nhi ho rahe please solve it
@graphicguru5902
@graphicguru5902 5 лет назад
sir meri image show nhi ho rhi??
@FundaOfWebIT
@FundaOfWebIT 5 лет назад
@graphicguru5902
@graphicguru5902 5 лет назад
Sir issko agar delete karna ho toh kaise kareinge??plz reply...
@FundaOfWebIT
@FundaOfWebIT 5 лет назад
Haa... we can delete by its id.. Sorry for late reply.. ws lil busy..
@FundaOfWebIT
@FundaOfWebIT 5 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gj5c8lfnEuo.html
@UzairKhan-if5uh
@UzairKhan-if5uh 3 года назад
bro dont mind but in this video you are doing only your work , you are not teaching how to do that... but well effort...
@pixel3616
@pixel3616 3 года назад
can you send source code
@kamleshteli2295
@kamleshteli2295 4 года назад
i want source code sir
@allworldentertainment1759
@allworldentertainment1759 2 года назад
upload image code
@infekted5944
@infekted5944 3 года назад
Funda meyer
@precillajansirani6933
@precillajansirani6933 3 года назад
I have use the code same as you used.. here it is:
@chathurangabandara6145
@chathurangabandara6145 2 года назад
not working - get an error unexpected T_string. why?
Далее
Спецэффекты в Симс 4
00:36
Просмотров 138 тыс.
Displaying Images from a MySQL Database using PHP
11:42
Insert and Fetch Images From Mysql Database in PHP
10:20
search bar using Php and MySQL
9:51
Просмотров 194 тыс.
How to Insert Form Data into Database using PHP
10:41