?
Path : /home/enviro777/public_html/admin/ |
Current File : /home/enviro777/public_html/admin/insert4.php |
<?php ob_start(); include "include/connection.php"; $obj=new db(); if($_POST) { extract($_POST); //echo $kk; //exit; $imageName=$_FILES['image']['name']; $source=$_FILES['image']['tmp_name']; move_uploaded_file($source, "banner/".$imageName); $sql="INSERT INTO `banner1`(`Image`) VALUES ('$imageName')"; // echo $sql; $obj->query($sql); header("location:banner2.php"); }