How to upload image to MySQL database and display it using php

preview_player
Показать описание

Step by step tutorial on how to upload an image to a MySQL database. The uploaded image-name is saved in the image column of type varchar in the database together with other information such as text and id.
After doing this, the file is moved from the local directory to a directory on the server. The image is then displayed on the page together with other information using simple HTML and CSS.
Don't forget the subscribe, comment, like, and share.
Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Great job on this! So many presenters do not bother to first show what the code does before showing how to code it. Also kudos on giving out the source code. Believe me no sound is needed when you have been so helpful.

needtonow
Автор

Really the only proper video on YouTube that covers this subject. Thanks a lot!

TGDTom
Автор

you made the tutorial short simple yet it is very helpful. thanks dude!

maleficgunner
Автор

it's 2022 and you literally save my suffering, images are not being uploaded when its from "Downloads folder" for example, and i just took some codes from this vid and it works!Thank you.

kmssi
Автор

First in my language (portugues): Muito obrigado! Em meio a milhões de vídeos, este foi o único que me ajudou.
Now, in your language: Thank you! Between the million videos, this only what help me.

RenanWitt
Автор

This guy is underrated. You are one of the best tutors on youTube. You should be at over 600k subscribers.

delfinotachi
Автор

First in my language (russain): Спасибо
))
Now, in your language: Thank you! Between the million videos, this only what help me. ))

Nikita-ivjp
Автор

this is a good tuitorial, i have followed through and managed to piece it together and its now working, the only thing i noticed about it is that when you post it post blank text and photo holder. maybe i should apply that function that defines that when none of the conditions are met then the posting should not occur

MrPherez
Автор

I Love You <3
you just saved me from losing my mind..
I have been searching too much for this but nothing was working..
Loads of thanks..

mohammedabdulhady
Автор

Exactly what I needed! I like that your explain what your are doing with comments! Awesome, thanks. :) Warmest regards, -South Texas.

JesusHilarioH
Автор

This is the only tutorial that works for me.. Thank you

rosettedf
Автор

it works perfect. Thank you very much. Greetings from Brazil !!

phillipisaac
Автор

thanks for this video, before empty images were uploaded to server. But, your code solved it. thanks

xyzrgp
Автор

Thanks for the vid, really helped me out with image type insert and selects!

YUhaveBawsome
Автор

Thank you so much! Just a small question: Is there any way that we can upload many images while keeping that description field inserted into mysql table too? I can just only either do multiupload without other form fields. If I add more fields other than image upload, I can upload just one image at a time.
Please help me! thank you!

universe
Автор

Works perfectly. thanks from Sri Lanka

aforict
Автор

Cam someone help me?
It does upload my image into the designated folder but its name is changing into 1.(its extension). And its not also recorded in my MySQL database. What's the problem?
I'm using a webserver.

kenichimendoza
Автор

You're example is wonderfull. Thanks!

harvintoledo
Автор

Hi Awa Melvine, Thanks so much for creating this demo.  Excellent job!Regards, Soon

soonsaeng
Автор

thanks to you I was able to upload DOCX and PDF file in db and able to display it.

abhishekkaushal