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 yout 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 <?php if(isset($_POST['s1'])) { $con=mysqli_connect("localhost","root","","em"); mysqli_query($con,"insert into emp(ename,emailid,ephoto) values('".$_POST['t1']."', '".$_POST['e1']."', '".$_FILES['file1']['name']."')"); header("location:photo.php"); } ?> <html> <head></head> <body> <form name=f1 id=f1 method=post enctype="multipart/form...
Comments
Post a Comment
Thanks for your comment