Advertisement
GWibisono

silakan coba

Apr 7th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. if(!isset($_POST[idtxt])){ die('no id ?'); }
  10. $result = mysql_query($perintah)or die(mysql_error());
  11.     if ($result) {
  12.         header("location:index1.php");
  13.     } else {
  14.         echo "Data belum dapat di ubah!!";
  15.     }
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement