How to upload image and display using PHP and MYSQL database | File Upload in PHP
HTML-код
- Опубликовано: 10 сен 2024
- In this tutorial, we will upload image and display on HTML page using PHP and MYSQL database. Upload file in PHP and MYSQL database. Here, we will create a form to upload photos. The image will be moved to the folder and the image name with extension will be inserted into the database.
Source for this tutorial -
technosmarter....
In this PHP tutorial, we will create an MYSQL database table and an HTML form. The HTML form will be used to upload image .
How to upload the image and display using PHP ?
To upload an image or multiple images from the PHP website you have to follow these points below-
1. Create HTML form with input type="file" . The image is also a file and you can follow the same process for zip ,pdf ,docs, etc.
2. Create a database table to save image names with extension . All the image names will be inserted into the database one by one.
3. Create an uploads folder. All the images will be moved to this folder.
4. Create a SELECT query and fetch image from the database.
5. You can restrict image - User only uploads these formats - jpg,png,jpeg,gif etc any format.
6. Upload image size under 1 MB or max.
In this tutorial, we will learn how to upload images and display on HTML page using PHP
This PHP tutorial is in the Hindi language. This is part of PHP in Hindi tutorials. We will be explained it in the Hindi language with source codes.
Website
technosmarter.com
For any question , use our Techno Smarter QA platform.
Ask a Question
technosmarter.c...
or other videos by Techno Smarter...Subscribe below links!!
Facebook
/ technosmarter
Instagram
/ technosmarter
Twitter
/ technosmarter
RUclips Channel
/ technosmarter
#technosmarter #image_upload #file_upload #php #php_tutorial #html_form #image_formats #photo #database #mysql #display #development #php_tutprials #phpinhindi #php_in_hind #folder #image_in_folder #image_in_database #html_page
Reference -
1. Upload the image and display using PHP.
2. File upload in PHP.
3. Photo upload in PHP
4. PHP in Hindi
5. How to upload image and display in HTML page using PHP in Hindi .
6. How to upload files in folder using PHP .
7. Upload image in folder and display.
8. Upload image in folder and database using PHP.
thanks man, need a delete and update but im sure ill figure it out
need a way to stop uploading the image everytime i refresh the page tho
Image crud operation
ruclips.net/video/VxWS7yL7s5k/видео.html
You are resubmitting the form data using browser refresh icon .
You can stop it with validation and stop resubmitting with js code while clicking refresh icon of browser .
@@TechnoSmarter thanks!