hjkhghghop'sdvsdvsdvsddsvsdvsddssfsddsfsfsdghgt
bnmbertsu,op'op'sdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf'tdfg
/
home
/
u797489378
/
domains
/
musicndance.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php ob_start(); include('connection.inc.php'); include('sidebar.inc.php'); include('header.inc.php'); if (isset($_POST['submit'])) { $image = $_FILES['image']['name']; $image_path = "./photos/" . $image; $sql = "INSERT INTO `gallery`(`image`) VALUES ('$image')"; $query = mysqli_query($con, $sql) or die("error"); if ($query) { move_uploaded_file($_FILES['image']['tmp_name'], $image_path); header('location:Combo.php'); } } ?> <form method="POST" enctype="multipart/form-data"> <div class="form-group"> <label for="exampleInputEmail1">Product image</label> <input type="file" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="image"> </div> <button type="submit" class="btn btn-primary" name="submit" value="submit">Submit</button> </form> <?php include('footer.inc.php'); ob_flush(); ?>