Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(empty($_FILES['picture']))
- {
- echo 'Pilih file gambar';
- }
- else
- {
- $image = addslashes(file_get_contents($_FILES['picture']['tmp_name'])); // gambar dari form
- //mysql_query("INSERT INTO foto (foto)VALUES('$image')");
- //echo "<script>document.location='index.php'</script>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement