first commit
This commit is contained in:
12
dev/app/tindaklanjut/pdf/crud.php
Normal file
12
dev/app/tindaklanjut/pdf/crud.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include('../../koneksi.php');
|
||||
$key=$_POST['key'];
|
||||
if ($key=='delete_cv') {
|
||||
$id=$_POST['id'];
|
||||
$d=pg_query("SELECT file FROM scan_komen WHERE id='$id'");
|
||||
while($r=pg_fetch_array($d)) {$fil=$r[0];}
|
||||
$del_pr=pg_query("DELETE FROM scan_komen WHERE id='$id'");
|
||||
$path = "pdf/".$fil;
|
||||
if(file_exists($path)){unlink($path);}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user