jcarloslb

Untitled

Sep 6th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. if(isset($_POST['atualizar_brindes'])){
  2.                
  3.                 $id = $_POST['id'];
  4.                 $nome_file = $_POST['nome_brinde'];
  5.                 $src_file = $_FILES['anexo_imagem'];
  6.                 $quantidade = $_POST['quantidade'];
  7.                
  8.                 $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());
  9.            
  10.                 if($query == true){
  11.                    
  12.                      echo '<script>
  13.                                alert("Atualização efetuada com sucesso.");
  14.                           </script>';
  15.                 }
  16.                
  17.                
  18.             }
Advertisement
Add Comment
Please, Sign In to add comment