1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
//read variabel on sky
$kd = "";  
extract($_GET);
$kd_peminjam = $kd;  // read kode

//Including PHP
include(ASANOER_FOLDER_PELENGKAP.'koneksi-nya.php');

//Tabel Peminjam
$tb_peminjam = ASANOER_DB_TABEL_PREFIX."peminjam";

// Cek input


// SQL database

$sql = "UPDATE $tb_peminjam SET td_peminjam='1' WHERE kd_peminjam='$kd_peminjam'"; 
		
		if ($xdatabase->query($sql) === FALSE) 
		{
			$xdatabase->close();
			echo "ERROR";
		}
		else
		{
			$xdatabase->close();
			echo "DELETE OKE";
		}
?>