first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
print_r($_POST);
|
||||
include("../../koneksi.php");
|
||||
$url="/var/www/simdistu/dev/app/tindaklanjut/pdf";
|
||||
$komen_id=$_POST['komen_id_uploadz'];
|
||||
$folder = "pdf";
|
||||
$tmp_name = $_FILES["input_load_cvz"]["tmp_name"];
|
||||
$name = $url."/".$folder."/".$komen_id."_".$_FILES["input_load_cvz"]["name"];
|
||||
$name_pdf = $komen_id."_".$_FILES["input_load_cvz"]["name"];
|
||||
|
||||
move_uploaded_file($tmp_name, $name);
|
||||
$ins=pg_query("INSERT INTO scan_komen (komen_id,file) VALUES ('$komen_id','$name_pdf')");
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user