SHARE
TWEET

Untitled

hamjoricantiq Jan 28th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ($_SERVER['REQUEST_METHOD'] == 'POST') {
  2.         $nis            = $_POST['nis'];
  3.         $nama_lengkap   = $_POST['nama_lengkap'];
  4.         $jenis_kelamin  = $_POST['jenis_kelamin'];
  5.         $alamat         = $_POST['alamat'];
  6.         $goldar         = $_POST['goldar'];
  7.         $ibu            = $_POST['ibu'];
  8.         $kelas          = $_POST['id_kelas'];
  9.         $file           = $_POST['foto'];
  10.         $foto           = $_FILES['foto'];
  11.  
  12. $sql = "UPDATE siswa SET nis = '$nis', nama_lengkap = '$nama_lengkap', jenis_kelamin = '$jenis_kelamin', alamat = '$alamat', goldar = '$goldar', ibu = '$ibu', id_kelas = '$kelas' file = '$file' WHERE nis = '$nis' ";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top