?
Path : /home/enviro777/public_html/admin/ |
Current File : /home/enviro777/public_html/admin/insert5.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, "client/".$imageName); $sql="INSERT INTO `client`(`Image`) VALUES ('$imageName')"; // echo $sql; $obj->query($sql); // header("location:client2.php"); echo'<script> alert("Image is Successfully Inserted"); window.location="client2.php"; </script>'; }