Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['atualizar_brindes'])){
- $id = $_POST['id'];
- $nome_file = $_POST['nome_brinde'];
- $src_file = $_FILES['anexo_imagem'];
- $quantidade = $_POST['quantidade'];
- $query = mysql_query("UPDATE tb_biblioteca SET nome_file = '".$nome_file."', src_file = '".$src_file."', observ_file = '".$quantidade."' WHERE id = '".$id."'") or die(mysql_error());
- if($query == true){
- echo '<script>
- alert("Atualização efetuada com sucesso.");
- </script>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment