add sppd to git repo

This commit is contained in:
ryan
2025-10-09 13:13:09 +07:00
commit cc020ada92
1697 changed files with 394218 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
include('../../koneksi.php');
$key=$_POST['key'];
if ($key=='simpan_jns_user') {
$id=$_POST['id'];
$nama=$_POST['nama'];
$cek_jns_user=pg_query("SELECT id FROM sp_jenis_user WHERE id='$id'");
$row_jns_user = pg_fetch_row($cek_jns_user);
if ($row_jns_user[0] > 0) {
$upd_jns_user = pg_query("UPDATE sp_jenis_user SET
nama='$nama'
WHERE id='$id'");
} else {
$ins_jns_user = pg_query("INSERT into sp_jenis_user (
nama
) values(
'$nama'
)
");
}
} else
if ($key=='delete_jns_user') {
$id=$_POST['id'];
$del_jns_user = pg_query("DELETE FROM sp_jenis_user WHERE id='$id'");
}
?>