Advertisement
CHaNStar

tambah

Jan 15th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $file = $_FILES['file'];
  2.  
  3. if (!$upload){
  4. flash('error',"Upload file gagal");
  5. header('location:index.php');
  6. }
  7. $file = $foto['name'];
  8.  
  9.  
  10. $sql ="INSERT INTO siswa(nis,nama_lengkap,jenis_kelamin,kelas,jurusan,alamat,golongan_darah,nama_ibukandung,file) VALUES
  11. ('$nis','$nama_lengkap','$jenis_kelamin','$kelas','$jurusan','$alamat','$golongan_darah','$nama_ibukandung','$file)";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement