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