simple php program upload file in database

XAMPP Version: 7.1.1 

 Control Panel Version: 3.2.2



1. Starting PHP code we need create table like as bellow

2. Go to your browser and type localhost//phpmyadmin  
And take a  new database.

3. Database name=em
4. Table name=emp and

5. Select 4 column  like

eid, ename, emailid and ephoto
  
6/write this PHP program

simple php program upload file in database

7. After writing this code 8. you save this file in 

C drive/xampp//htdocs

 

9. In your browser type localhost//filename.php

Output like this

simple php program upload file in database

10. In name, email id

And upload any photo like JPG, png, GIF and click on upload

And go to the database, you was created

simple php program upload file in database

11.Your file was uploaded.

 


Comments