Guest User

Untitled

a guest
Apr 7th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. {
  3. require("koneksi.php");
  4. $tglsewa = substr($_POST['tglsewa'],6,4)."-".substr($_POST['tglsewa'],3,2)."-". substr($_POST['tglsewa'],0,2);
  5.  
  6. $perintah = "UPDATE konfirmasi set no_ktp = '$_POST[notxt]', nama_pelanggan = '$_POST[nmtxt]',alamat ='$_POST[almtxt]',
  7. telepon = '$_POST[tlptxt]', bank = '$_POST[bank]', nominal_transfer = '$_POST[trftxt]', tgl_sewa = '$tglsewa',foto = '$_POST[foto]', dikirim_dari_bank = '$_POST[trf]',
  8. dari_nomer_rekening = '$_POST[rekening]', atas_nama = '$_POST[atasnama]', status = '$_POST[statlist]' where id = '$_POST[idtxt]'";
  9. $result = mysql_query($perintah);
  10. if ($result) {
  11. header("location:index1.php");
  12. } else { echo "Data belum dapat di ubah!!";
  13. }
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment