add sppd to git repo
This commit is contained in:
12
crud.php
Normal file
12
crud.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include("app/koneksi.php");
|
||||
$key=$_POST['key'];
|
||||
if ($key=='viund') {
|
||||
$thn=$_POST['thn'];
|
||||
$d=pg_query("SELECT sp_kwi_id,no_surat,instansi_tujuan,untuk FROM sp_spt WHERE EXTRACT(YEAR FROM tgl_berangkat)='$thn' ORDER BY id DESC");
|
||||
while($r=pg_fetch_array($d)) {
|
||||
echo "<option value='".$r[0]."'>".$r[1]."|".$r[2]."|".$r[3]."</option>";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user