first commit

This commit is contained in:
Meynin
2024-06-11 09:26:12 +07:00
commit c1cae68044
4151 changed files with 778192 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
print_r($_POST);
include("../../koneksi.php");
$surat_id=$_POST['surat_id_uploadz'];
$folder = "pdf";
$tmp_name = $_FILES["input_load_cvz"]["tmp_name"];
$name = $folder."/".$surat_id."_".$_FILES["input_load_cvz"]["name"];
$name_pdf = $surat_id."_".$_FILES["input_load_cvz"]["name"];
move_uploaded_file($tmp_name, $name);
$ins=pg_query("INSERT INTO scan (surat_id,file) VALUES ('$surat_id','$name_pdf')");
?>