Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. if (isset($_POST['save'])) {
  2. $getArray = array("!", "@", "-", "_", "/", "\\", "%", "&", " ");
  3. $id_file = (date('Y-m-d-H-g-i-s'));
  4. $file_type = $_FILES['filedok']['type'];
  5. $file_name = $_FILES['filedok']['name'];
  6. $file_tmp = $_FILES['filedok']['tmp_name'];
  7. $nama_file = $id_file.$file_name;
  8. $id_name = str_replace($getArray,"",($nama_file));
  9. $res = copy($file_tmp, "app/fileupload/".$id_name);
  10. $query = mysql_query("INSERT INTO upload_komp (id_setuppekerja, id_masterkomp, id_turunankomp, dekripsi, file_komp) VALUES ('$_GET[id]', '$_GET[id2]', '$_GET[id3]', '$_POST[dekripsi]', '$id_name')");
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement