Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. if(empty($_FILES['picture']))
  2. {
  3. echo 'Pilih file gambar';
  4. }
  5. else
  6. {
  7. $image = addslashes(file_get_contents($_FILES['picture']['tmp_name'])); // gambar dari form
  8. //mysql_query("INSERT INTO foto (foto)VALUES('$image')");
  9. //echo "<script>document.location='index.php'</script>";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement