first commit

This commit is contained in:
2024-05-31 14:18:00 +07:00
commit 1f8ef5e17f
4029 changed files with 777987 additions and 0 deletions

12
app/kirim/upload_dok.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
include("../koneksi.php");
$surat_id=$_POST['surat_id'];
$folder = "dok";
$tmp_name = $_FILES["file_dok"]["tmp_name"];
$name = $folder."/".$surat_id."_".$_FILES["file_dok"]["name"];
$name_ins = $surat_id."_".$_FILES["file_dok"]["name"];
move_uploaded_file($tmp_name, $name);
$input = pg_query("INSERT INTO scan (file,surat_id) VALUES ('$name_ins','$surat_id')");
echo $surat_id;
?>