first commit
This commit is contained in:
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
include('../../koneksi.php');
|
||||
$key=$_POST['key'];
|
||||
if ($key=='peserta_ready') {
|
||||
$a=$_POST['pegawai_id'];
|
||||
$pecah=explode(',',$a);
|
||||
foreach($pecah as $selected) {
|
||||
$r=pg_query("UPDATE riwayat_peserta SET status='Ready' WHERE id='$selected'");
|
||||
}
|
||||
} else
|
||||
if ($key=='peserta_batal') {
|
||||
$a=$_POST['pegawai_id'];
|
||||
$pecah=explode(',',$a);
|
||||
foreach($pecah as $selected) {
|
||||
$r=pg_query("UPDATE riwayat_peserta SET status='Pending' WHERE id='$selected'");
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user