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

  Рет қаралды 626,842

Awa Melvine

Awa Melvine

Күн бұрын

Пікірлер: 575
@needtonow5762
@needtonow5762 4 жыл бұрын
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.
@kmssi1538
@kmssi1538 2 жыл бұрын
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.
@RenanWitt
@RenanWitt 8 жыл бұрын
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.
@AwaMelvine
@AwaMelvine 8 жыл бұрын
my pleasure. Thanks so much for watching :D
@MrPherez
@MrPherez 7 жыл бұрын
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
@Nikita-iv4jp
@Nikita-iv4jp 4 жыл бұрын
First in my language (russain): Спасибо )) Now, in your language: Thank you! Between the million videos, this only what help me. ))
@AwaMelvine
@AwaMelvine 4 жыл бұрын
Thank you very much too!
@delfinotachi1686
@delfinotachi1686 3 жыл бұрын
This guy is underrated. You are one of the best tutors on youTube. You should be at over 600k subscribers.
@maleficgunner5245
@maleficgunner5245 5 жыл бұрын
you made the tutorial short simple yet it is very helpful. thanks dude!
@TGDTom
@TGDTom 6 жыл бұрын
Really the only proper video on KZbin that covers this subject. Thanks a lot!
@oldguy8177able
@oldguy8177able 5 жыл бұрын
yes works thanks,if you want multi uploads with text,use sessions with localstorage,use session first ,next page use localstorage set and get
@aforict8421
@aforict8421 4 жыл бұрын
Works perfectly. thanks from Sri Lanka
@tsvetomir5309
@tsvetomir5309 5 жыл бұрын
you can fix the repeat bug by moving the form in a another php file . thanks for the code awe you are the best !
@rosettedf6574
@rosettedf6574 6 жыл бұрын
This is the only tutorial that works for me.. Thank you
@ankitsam4880
@ankitsam4880 3 жыл бұрын
thank you very helpful video love from India
@abhishekkaushal8407
@abhishekkaushal8407 7 жыл бұрын
thanks to you I was able to upload DOCX and PDF file in db and able to display it.
@KimKongKun1337
@KimKongKun1337 7 жыл бұрын
To all the people who have problem uploading the picture to the database, this is the solution: He wrote this: $sql = "INSERT INTO images (image, text) VALUES ('$image', '$text')"; You should use this: $sql = "INSERT INTO images (image, image_text) VALUES ('$image', '$text')";
@kimmy7397
@kimmy7397 6 жыл бұрын
Thank you!
@mohammedabdulhady8926
@mohammedabdulhady8926 7 жыл бұрын
I Love You
@gogoulor
@gogoulor 7 жыл бұрын
Works perfect. I just prefer to change image name in order to keep database and image with the same index. Thanks and BR. it is needed to avoid sql injection.
@JesusHilarioH
@JesusHilarioH 7 жыл бұрын
Exactly what I needed! I like that your explain what your are doing with comments! Awesome, thanks. :) Warmest regards, -South Texas.
@AwaMelvine
@AwaMelvine 7 жыл бұрын
Thanks for watching :D
@mdmasud5888
@mdmasud5888 8 жыл бұрын
Successfully I have solved my problem. Thank you so much for your tutorial.
@AwaMelvine
@AwaMelvine 8 жыл бұрын
I'm glad this helped. Thank you for watching and happy coding :)
@buchukoyfwa-fwa9600
@buchukoyfwa-fwa9600 7 жыл бұрын
how?
@shamimsarker839
@shamimsarker839 4 жыл бұрын
Thank u so much.. Love from Bangladesh.
@YUhave2Bawsome
@YUhave2Bawsome 4 жыл бұрын
Thanks for the vid, really helped me out with image type insert and selects!
@xyzrgp
@xyzrgp 7 жыл бұрын
thanks for this video, before empty images were uploaded to server. But, your code solved it. thanks
@shwetagupta2662
@shwetagupta2662 6 жыл бұрын
The video tutorial is very useful ,Really Appreciable But there is issue occuring that text and image upload the post on the front end as well as in the database but the images are not visible in the front end and images are not shown in the images folder too.........please guide me what to do in this query
@koyawell2551
@koyawell2551 4 жыл бұрын
for some having trouble saving it to database in line: $sql = "INSERT INTO images (image, image_text) VALUES ('$image', '$image_text')"; change image_text to text since he used text column in this video code: $sql = "INSERT INTO images (image, text) VALUES ('$image', '$image_text')";
@marcoantonio7634
@marcoantonio7634 7 жыл бұрын
Bro, Notice: Undefined index: tmp_name in C:\xampp\htdocs\upload\index.php on line 14
@NoorMohamed-hb7ce
@NoorMohamed-hb7ce 3 жыл бұрын
Very brilliant and fantastic presentation 👍❤️......100k likes.....
@sandipanmondal9474
@sandipanmondal9474 7 жыл бұрын
Thanks, I like you video. it is very useful thing.
@ninip2008
@ninip2008 4 жыл бұрын
Many thanks! Big hug from Berlin.
@harvintoledo734
@harvintoledo734 7 жыл бұрын
You're example is wonderfull. Thanks!
@AliciaGuitar
@AliciaGuitar 4 жыл бұрын
Something must have deprecated because the profiles.php didn't work. I changed the query to object oriented latest php standard for arrays and used the while loop instead of foreach and it worked like a charm! Now I gotta learn how to make this secure because its a php attack waiting to happen!
@B_DWisdomPills
@B_DWisdomPills 8 жыл бұрын
Quite detailed GOOD...........
@priyadharshinimuthukumar8970
@priyadharshinimuthukumar8970 Жыл бұрын
thank you so much ..i have learnt alot
@soonsaeng2503
@soonsaeng2503 8 жыл бұрын
Hi Awa Melvine,Thanks so much for creating this demo. Excellent job!Regards,Soon
@phillipisaac4337
@phillipisaac4337 6 жыл бұрын
it works perfect. Thank you very much. Greetings from Brazil !!
@hermanomark
@hermanomark 6 жыл бұрын
it worked for me now.. just remove the id in database
@TheWFLE
@TheWFLE 4 жыл бұрын
It's really helpful... I just wish I had the attention span to actually get anything from it. LOL my brain's fried for finals week :) Thank you so much though! You're amazing!!
@AwaMelvine
@AwaMelvine 4 жыл бұрын
Thank you, Raina!
@prabhakarreddy7988
@prabhakarreddy7988 7 жыл бұрын
great video man,,, i tried it and succeed,,,love you
@OneInChristComedy
@OneInChristComedy 4 жыл бұрын
Wow, I love your videos. Please create a tutorial on uploading and viewing a pdf document with php and mysql as you did in How to create a blog in PHP and MySQL database
@programmingtutorialsmadesi6864
@programmingtutorialsmadesi6864 4 жыл бұрын
thanks bro you helped me a lot
@Etp369
@Etp369 2 жыл бұрын
Thanks a lot man to make it easy for us.
@lightandpeace967
@lightandpeace967 7 жыл бұрын
thnks for uploading video !!!!! its very helpful for my today prject.
@Shogoeu
@Shogoeu 5 жыл бұрын
This is not "uploading image to MySQL", it's uploading image to a folder and saving the path to the image in MySQL.
@faizy3132
@faizy3132 3 жыл бұрын
we can upload image to Db we wonly fetch adress thats y we upload image to folder
@dhproductions6722
@dhproductions6722 7 жыл бұрын
Very Well Boy keep It Up Very Nice Explaination
@Somalifox
@Somalifox 3 жыл бұрын
Thanks a lot from my heart, you are amazing on writing this code simple and easy.
@dhakprasadupreti6249
@dhakprasadupreti6249 4 жыл бұрын
Thank you very much for help. Your help became useful.
@savehands9135
@savehands9135 2 жыл бұрын
you are the best bro
@vinhvo4816
@vinhvo4816 4 жыл бұрын
Thank you very much, i hope you made next video.
@maorweiss7007
@maorweiss7007 4 жыл бұрын
Simple and useful. Thank U!
@kenichimendoza8571
@kenichimendoza8571 6 жыл бұрын
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.
@nimesh519
@nimesh519 5 жыл бұрын
thanks ,your tutorial helps me lot............
@ianthehunter3532
@ianthehunter3532 5 жыл бұрын
I got everything working, **BUT** the image doesn't load, it's just like before you inserted image/ near the end of the video
@jumamakorere8597
@jumamakorere8597 7 жыл бұрын
hi? thanks for tutorial... i like it. but can i drop it down my image and text as well instead of drop up?
@jineshmehta9259
@jineshmehta9259 7 жыл бұрын
Awesome..it works very well... Thanks !!!
@arshadhussain5355
@arshadhussain5355 6 жыл бұрын
Thanks!!! Works like a charm...
@jin60jir
@jin60jir 5 жыл бұрын
Great tutorial. It was helpful for me :)
@FairoozZafar
@FairoozZafar 8 жыл бұрын
thanks. worked perfectly!
@AwaMelvine
@AwaMelvine 8 жыл бұрын
Thanks you for watching
@3xtLastfencer
@3xtLastfencer 8 жыл бұрын
can you sent to me too?
@mrsingh9656
@mrsingh9656 8 жыл бұрын
Can you send it to me too?
@muhamadaidiel4822
@muhamadaidiel4822 8 жыл бұрын
can you sent to me too?
@m_jameem
@m_jameem 5 жыл бұрын
thank you sir , lesson is very helpful 😊😊
@mrendus
@mrendus 5 жыл бұрын
FUCK YOU ITS DONT WORK IDIOT
@--b1331
@--b1331 3 жыл бұрын
thank you my friend i wish good and health for you
@SarainVienna57
@SarainVienna57 7 жыл бұрын
Hi, a little help please. I did everything as you and there are no errors but the image won't upload to the database..
@sharifabahar6257
@sharifabahar6257 6 жыл бұрын
make a folder named 'images' in ur root folder (i mean in the same folder where ur index file is stored) then put ur images there, then it works.
@chocobun9588
@chocobun9588 7 жыл бұрын
thanks for the awesome video.Its work well but do you have some code for the security of the image.Like the limited size,and only some type can be uploaded(jpg,jpeg)?i hope you can help me ASAP.Thank you
@PCHIOLKIN_YU
@PCHIOLKIN_YU 5 жыл бұрын
Thanks! You helped me to make my diploma)) :D
@gamerspieler8196
@gamerspieler8196 2 жыл бұрын
You have helped me a lot :)
@Aaminul555
@Aaminul555 Жыл бұрын
Thanks a lot Bro ! very useful project indeed.
@shwetagupta2662
@shwetagupta2662 6 жыл бұрын
Its really helpful video thanku so much for the useful information. Really Appreciable
@bigsmoke5930
@bigsmoke5930 2 жыл бұрын
Thank you very much Sir! Amazing
@salomechris4180
@salomechris4180 4 жыл бұрын
Thank you so much.....please can you help me to display other file apart from images like doc and PDF
@delfinotachi1686
@delfinotachi1686 3 жыл бұрын
Thank you so much for this video.
@Happystoreup
@Happystoreup 4 жыл бұрын
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!
@bgmibrutal4347
@bgmibrutal4347 6 жыл бұрын
Very helpful ...Thank you very much...
@ahmadrazazach426
@ahmadrazazach426 4 жыл бұрын
sir u r great.now how i can retrieve that imgs on my web page from server.can u help me plz?.Thnks in advance
@graedaloran9137
@graedaloran9137 7 жыл бұрын
Awa thank you for this tutorial it helps me a lot. but i have question how can i set the size of the uploaded image in its css?
@nubarheyderzade4616
@nubarheyderzade4616 6 жыл бұрын
Hi. thank you very much for the video. My program is run correctly but when i refresh site, the data insert again to the database but i dont choose any image. How i can solve this problem?
@karaoketimor
@karaoketimor 5 жыл бұрын
Thanks for your tutorial anyway i did same you way but i dont see image in to folder which i use for image. Can you help me for this issue?
@Vboystaskandfun
@Vboystaskandfun 5 жыл бұрын
Check the url path...
@HapticAaron
@HapticAaron 7 жыл бұрын
This 'works' however the images are not being placed into the database. The name of the image is but the actual image is being placed into the images folder on your machine - not the database. I know the description mentions this but the title is a bit misleading.
@HapticAaron
@HapticAaron 7 жыл бұрын
Update- I was very tired and misunderstood the video, this is in fact exactly what I needed. Good job.
@TheDLuigi
@TheDLuigi 7 жыл бұрын
Thank you so much! Question : everytime I refresh the page, it uploads the same image again to the database, is there anyway to avoid that? Keep up the great work!
@TheDLuigi
@TheDLuigi 7 жыл бұрын
Also, when I try to retrieve the images, they are all broken images.
@iJuce
@iJuce 4 жыл бұрын
i think just by adding header("Location: (location to same php file or redirected file))"); should fix the problem
@rise5544
@rise5544 4 жыл бұрын
@@iJuce what do you mean
@vuongkhaikiet2264
@vuongkhaikiet2264 7 жыл бұрын
thanks very much for your lesson
@LUSIANSTUDIOS
@LUSIANSTUDIOS 7 жыл бұрын
Works perfectly, thanks!
@siddheshkadam136
@siddheshkadam136 7 жыл бұрын
Thanks Brother..Really Helped a lot....!!!
@meatfactory
@meatfactory 5 жыл бұрын
Thnx, this was very helpful!
@xharemslive7143
@xharemslive7143 2 жыл бұрын
Thnx bro it helped a looooot
@aloisemaina3662
@aloisemaina3662 4 жыл бұрын
Very helpful. Thank you @Awa Melvine
@Er.MeetPatel
@Er.MeetPatel 3 жыл бұрын
Amazing video thank you for code
@akosisydney28
@akosisydney28 6 жыл бұрын
Thanks for the tuitorial but when I refresh my website it keeps duplicate itself
@georgenze1956
@georgenze1956 6 жыл бұрын
my do the same
@ThevKube
@ThevKube 6 жыл бұрын
the same
@jfctroy9481
@jfctroy9481 6 жыл бұрын
Same, what should i do ?
@ibrahimpashaa9334
@ibrahimpashaa9334 6 жыл бұрын
first you must refresh hard not just refresh ,click on url link then ok it will fine now otherwise,duplicate
@jaidhillon2381
@jaidhillon2381 5 жыл бұрын
Make changes in line 79 where And it will stop duplication of image and text as well
@mathewkings9806
@mathewkings9806 4 жыл бұрын
Sweet bro, thanks a lot, really helpful even till now.
@vicodev444
@vicodev444 2 жыл бұрын
hello, if I also wanted to delete with a key what I entered? Type also delete the image from the folder. I thank you
@puneetgandhi5740
@puneetgandhi5740 6 жыл бұрын
thanks sir.....for making this video....
@n.sakib390
@n.sakib390 7 жыл бұрын
why we r using () this tag??
@fahadjunaid4572
@fahadjunaid4572 6 жыл бұрын
Thank you sir. But i have some problem when i try to upload other image or high quality image it will display image rotation please help me thank you.
@rutherjademarte5987
@rutherjademarte5987 3 жыл бұрын
The code works, but there is an issue, if u refresh the page. The last pic u uploaded will continue to upload like a loop.
@SubrataSen38
@SubrataSen38 7 жыл бұрын
sir please mention that if they are doing in windows then they don't have to set the target just keep it blank like.... $target =" ".basename($_FILES['image']['name']);
@craigharkins4669
@craigharkins4669 8 жыл бұрын
Thank you so much man!!!!! Works great!
@AwaMelvine
@AwaMelvine 8 жыл бұрын
My pleasure. Thanks for watching
@stockeley7409
@stockeley7409 3 жыл бұрын
you're my hero
@tigger2581
@tigger2581 4 жыл бұрын
great tutorial dude
@vaishalivaghela5599
@vaishalivaghela5599 4 жыл бұрын
if i upload images from admn side and want to show that in userside than how can i do that plz reply....
@gameplaymemoriesYT
@gameplaymemoriesYT 7 жыл бұрын
Why u use varchar and not blob as datatype of the image? In C# its kindly different. I am newbie in web programming
@mosabelkalyouby4129
@mosabelkalyouby4129 6 жыл бұрын
Perfect Tutorial.
@kishankhant8011
@kishankhant8011 6 жыл бұрын
Nice work. Thank for this information, suggests you set some background music.
@paranoia77
@paranoia77 8 жыл бұрын
how to make that style from css can be responsive, the size of box page according to what you upload? sorry for asking, i'm newbie..
@technest4013
@technest4013 4 жыл бұрын
awosome well done dude
@josephat8824
@josephat8824 2 жыл бұрын
great job thx dear bro!
PHP Login and logout using sessions and flash messages
25:45
Awa Melvine
Рет қаралды 10 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 42 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 32 МЛН
How to Upload Images into MySQL Database and Display it using PHP
33:26
Save HTML Form Data to a MySQL Database using PHP
24:38
Dave Hollingworth
Рет қаралды 210 М.
Top 20 Strongest Dragon Ball Characters Ever
22:02
WatchMojo.com
Рет қаралды 806 М.
PHP how to connect to MySQL database
8:50
Bro Code
Рет қаралды 37 М.
How to Upload Image into Database and Display it using PHP
10:50
Code With Yousaf
Рет қаралды 57 М.
How to Fetch Data From Database in PHP And Display HTML Tables
20:17
OnlineITtuts Tutorials
Рет қаралды 207 М.
How to upload image to MySQL database and display it using php
21:06
Coding with Elias
Рет қаралды 291 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 212 М.
JWT авторизация. Основы JWT - механизма.
6:45
Хочу вАйти
Рет қаралды 15 М.