Mini Shell

Direktori : /home/athamevents/public_html/admin/
Upload File :
Current File : /home/athamevents/public_html/admin/product_insert.php

<?php include 'connection.php'; ?>
<?php



$name=$_REQUEST['name'];

$rs=$_REQUEST['rs'];

$m1=$_REQUEST['m1'];

$m2=$_REQUEST['m2'];

$m3=$_REQUEST['m3'];


$date=date("Y/m/d");

$image=$_FILES["x"]["name"];

if($image)
{
$temp=$_FILES["x"]["tmp_name"];
move_uploaded_file("$temp","product_pic/$image");

$reg=mysql_query("insert into product values('','$name','$rs','$m1','$m2','$m3','$image','$date') ");
}
else
{
$reg=mysql_query("insert into product values('','$name','$rs','$m1','$m2','$m3','','$date') ");
}



if($reg==1)
{
?>

<script type="text/javascript">
    alert("File Insert");
 window.location.href="product_add.php";

</script>
<?php

}
else
{
?>
<script type="text/javascript">

alert("Process Not complete");
 window.location.href="product_add.php";

</script>
<?php
}
?>

Zerion Mini Shell 1.0