ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/home/keydecors/public_html/admin/controller/
Upload File :
Current File : //proc/self/root/proc/self/root/home/keydecors/public_html/admin/controller/vaccine.php

<?php
//include database configuration file
include("../model/dboperation.php");
$vaccine		= 	 mysqli_real_escape_string($mysqli , $_POST['vaccine_name']);
$vaccine_details		 = 	 mysqli_real_escape_string($mysqli , $_POST['vaccine_details']);

 $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'],"../vaccine_img/".$newfilename1);
$img1=$newfilename1;
}

$sql		 =   "INSERT INTO vaccine(vaccine_name,
                                      vaccine_details,
									  img)
					   			 VALUES	('$vaccine',
								          '$vaccine_details',
										  '$img1')";	
if (!mysqli_query($mysqli,$sql)) {
  die('Error: ' . mysqli_error($mysqli));
}
																 

header("location:../pages/vaccine_kart.php?pro=$menu")
?>										  
										  				   

Zerion Mini Shell 1.0