Тёмный

PHP/MYSQL- How to upload Image in Folder and Save Path in Database 

TechYNI
Подписаться 296
Просмотров 78 тыс.
50% 1

This Tutorial is How to upload image in folder and save the image path and name in database using PHP/MYSQL.
This Video will make you understand the program in very practical way and make you understand how to program in PHP.
The program is not copied from other.
I'm a Computer Engineer Working in NIC(National Informatic Center), INDIA.
I have more than 8 year Experience in JAVA,PHP,Python and Javascript.
If This is helpful for you so please subscribe my channel and so share please.

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

 

19 ноя 2017

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@flax1600
@flax1600 Год назад
Thank you a lot for this. Others make it so complex but you are the one who made it so simple to understand ❤
@CoffeeDuoes
@CoffeeDuoes 9 месяцев назад
I can't believe how stupid simple this process is. Thanks so much for this video !
@beautifullifejourney28liza
@beautifullifejourney28liza Месяц назад
Well explained
@mihajloilic5836
@mihajloilic5836 4 года назад
GREAT dude! :) Thx a lot! ;)
@nangsuanlian1494
@nangsuanlian1494 3 года назад
Thanks alot brother.. please upload more video.. that's make me a lot ...
@techzone9621
@techzone9621 4 года назад
thank you so much you helped me alot thankkkkksss
@prathampatel316
@prathampatel316 Год назад
thank you so so so so so so so so so so so so so so so so so so so so so so Much this helps a lot in my project thank you from all my heart❤❤❤❤
@1eak6
@1eak6 5 лет назад
thank you so much
@cheemslovers8856
@cheemslovers8856 2 месяца назад
thank you lot
@grotonhomie
@grotonhomie 5 лет назад
thank you thank you
@sajidalisuthar
@sajidalisuthar 5 лет назад
Thank you so much. its save my lots of time
@bdliton
@bdliton 3 года назад
good idea
@ashananuruddika3275
@ashananuruddika3275 Год назад
Thank a lot🤟👊
@PA-ki9fy
@PA-ki9fy 2 года назад
Lifesaver😁
@vaibhavchoudhary8344
@vaibhavchoudhary8344 5 лет назад
hii sir if you can please make another one in java using context path for giving the path in mysql and store using filesystem.
@LokeshKumar-zi6bg
@LokeshKumar-zi6bg 5 лет назад
🎩 😁 👕👍Great! 👖
@vaishalivaghela5599
@vaishalivaghela5599 3 года назад
if i have 2 folders like admin and user , and if i want to add image in admin folder and in admin image folder and want to display it on userside than how can i do that ... if anyone have anser of this question than plz answer it...
@bahogtae3339
@bahogtae3339 5 лет назад
ty
@mhinfo2248
@mhinfo2248 5 лет назад
thiiiiiiiiiiiiiiiiiiiiiiiiiiing yyyyyyyyyyyyyyyyyyyyyoooooooooooooooooouuuuuuuuuuuuuu
@noirRozelle
@noirRozelle 4 года назад
how do you display the image?
@mirengemgedeon5811
@mirengemgedeon5811 5 лет назад
Sir please create another video for mulitple upload to be inserted in browser and select it to admins page thank you
@pabbasuryaprakash9246
@pabbasuryaprakash9246 4 года назад
Can you tell how to display it,after saving the path in a folder.
@mahadevsrk
@mahadevsrk 4 года назад
Even im having saame question, If you have codes please send
@adrianpolpeligrino3513
@adrianpolpeligrino3513 2 года назад
@@mahadevsrk you can either echo the row.
@okaforchinyerematthew1937
@okaforchinyerematthew1937 2 года назад
@@adrianpolpeligrino3513
@kaneezfatima2252
@kaneezfatima2252 6 лет назад
nice video sir ,how to upload multiple image using php mysqli??? sir it is urgent help me????
@techyni9274
@techyni9274 6 лет назад
Create another input on html.
@kaneezfatima2252
@kaneezfatima2252 6 лет назад
sir plz make separate video for it ....its very urgent for me as a major project ,,,my heartiest request plz
@MrAlexGolovin
@MrAlexGolovin 3 года назад
How do you display the image from the database? I appreciate you making this video but why would that be left out?
@mazwrld
@mazwrld 2 года назад
because it's not very commonly done
@mujahidahamed4750
@mujahidahamed4750 4 года назад
How to upload image to a folder which is out of the root folder. Please reply as soon as you see this message
@sora_free_videos
@sora_free_videos 5 лет назад
if i am uploading same name file my previous file replaced. any solution plz?
@hemantsahu4757
@hemantsahu4757 3 года назад
U can use md5(time()):
@panda_labs
@panda_labs 5 лет назад
why te,p_name is used?
@nadahusna5985
@nadahusna5985 4 года назад
how can i contact you sir ?? i do this like you show. but it doesn't work. can you teach me how to do this function
@keerthubabu1337
@keerthubabu1337 3 года назад
Is that working now
@adityarathore787
@adityarathore787 3 года назад
Notice: Undefined index: image in C:\xampp\htdocs\uploadimg\index.php on line 6 Notice: Trying to access array offset on value of type null in C:\xampp\htdocs\uploadimg\index.php on line 6 Fatal error: Uncaught Error: Call to undefined function mysql_querry() in C:\xampp\htdocs\uploadimg\index.php:11 Stack trace: #0 {main} thrown in C:\xampp\htdocs\uploadimg\index.php on line 11 getting these errors
@fuadnajmudin8252
@fuadnajmudin8252 4 года назад
May i know what the function of temp_name pls? And is it compulsory to use it pls? A.S.A.P.
@SuperLittle35
@SuperLittle35 3 года назад
When you select the file to upload, php takes it and gives it a temporary name and $_FILES['field']['tmp_name'] lets us get that name.
@SuperLittle35
@SuperLittle35 3 года назад
You can also use 'name' in place of 'tmp_name' to get the name of the original file.
@fuadnajmudin8252
@fuadnajmudin8252 3 года назад
@@SuperLittle35OK now I see that... Thanks 👍
@ashutoshgavali9687
@ashutoshgavali9687 4 года назад
Make other languages
@tanishtyagi1301
@tanishtyagi1301 4 года назад
lable
@akshitdhariwal6257
@akshitdhariwal6257 4 года назад
it's not storing address in my database and move_uploaded_file not working plz help
@keerthubabu1337
@keerthubabu1337 3 года назад
Even for me
@keerthubabu1337
@keerthubabu1337 3 года назад
Did u resolve it
@ethionatty109
@ethionatty109 3 года назад
hi the program does not work it, it says "Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\image\dbconfig.php:2 Stack trace: #0 C:\xampp\htdocs\image\index.php(2): include() #1 {main} thrown in C:\xampp\htdocs\image\dbconfig.php on line 2" so what is the problem?
@yafercorralbarrera9089
@yafercorralbarrera9089 3 года назад
I have the same problem
@davegill8955
@davegill8955 3 года назад
Hi there Ethio Natty! try replacing the function "mysql_connect()" with mysqli_connect(); Add an extra "i" since there is a newer mysql "i" To quote the video author TechYNI "we are Human beings and we do make mistakes!!" lol too funny! from Vancouver, Canada
@joecox3866
@joecox3866 4 года назад
Does not work for me. :(
@praptimaheshwari8221
@praptimaheshwari8221 3 года назад
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\image\dbconfig.php:2 Stack trace: #0 C:\xampp\htdocs\image\upload.php(2): include() #1 {main} thrown in C:\xampp\htdocs\image\dbconfig.php on line 2 I'm getting this error
@mo7a418
@mo7a418 3 года назад
me too ,, you got a solution ?
@GEETMP-wv7yw
@GEETMP-wv7yw 5 лет назад
didn't worked , don't know why its showing 0 in image column
@kushangshah980
@kushangshah980 4 года назад
Move_uploaded_files is a boolean type function... It returns true on success... Check that first. Maybe function is not working so no insertion occurred in that folder....
@SuperLittle35
@SuperLittle35 3 года назад
You might have made the image column in database as an interger type. I made a mistake like this once.
Далее
Upload a File to MySQL Database using PHP
6:23
Просмотров 134 тыс.
PHP Multiple Images upload and Display from database
10:34