Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['save'])) {
- $getArray = array("!", "@", "-", "_", "/", "\\", "%", "&", " ");
- $id_file = (date('Y-m-d-H-g-i-s'));
- $file_type = $_FILES['filedok']['type'];
- $file_name = $_FILES['filedok']['name'];
- $file_tmp = $_FILES['filedok']['tmp_name'];
- $nama_file = $id_file.$file_name;
- $id_name = str_replace($getArray,"",($nama_file));
- $res = copy($file_tmp, "app/fileupload/".$id_name);
- $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')");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement