ok
Direktori : /home/keydecors/public_html/admin/controller/ |
Current File : /home/keydecors/public_html/admin/controller/video.php |
<?php //include database configuration file include("../model/dboperation.php"); $video = mysqli_real_escape_string($mysqli , $_POST['video']); /*?>$p_price = mysqli_real_escape_string($mysqli , $_POST['p_price']);<?php */ /*$img1=''; if(!empty($_FILES["img1"]['tmp_name'])){ $temp1 = explode(".",$_FILES["img1"]["name"]); $newfilename1 = rand(). "_".date('m-d-Y_hia') . '.' .end($temp1); move_uploaded_file($_FILES['img1']['tmp_name'],"../pro_img/".$newfilename1); $img1=$newfilename1; }*/ $sql = "INSERT INTO gallery_video(gallery_video) VALUES ('$video')"; if (!mysqli_query($mysqli,$sql)) { die('Error: ' . mysqli_error($mysqli)); } header("location:../pages/video_add.php?pro=$menu") ?>