0
How to upload an image and some text fields data into mysql database through a php form?
the is form us consisted with several input fields amd the data entered must be stored in the database with that image file uploaded
2 Antworten
0
when u upload image , u don't store the image in database , you store image in your server , or we can say in your files , what you store in database is the url to that image.
For ex:-
When u upload an image and u have set upload directory to ./images/newimage/ and u uploaded an image named as myimage.png than the database will store www.yourwebsite.com/images/newimage/myimage.png
0
First of all thanks Vivek Bora for your answer.But we can store an image by using BLOB datatype.
So, can you help me to write the php code for this:
https://code.sololearn.com/WqHD1xxb1PDw/?ref=app