Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_POST['submited3'])) {
- $telf = $_POST['telefone'];
- $tele = $_POST['telemovel'];
- $sql = "SHOW TABLE STATUS LIKE 'conteudos'";
- $res = mysql_query($sql)or die(mysql_error());
- $status = mysql_fetch_array($res);
- $idimg=$status['Auto_increment'];
- $imagem=$idimg."_".$_FILES['imagem']['name'];
- $txtquery = "UPDATE conteudos
- SET footer_telf='$telf', footer_tele='$tele', quemsomos='$imagem'
- WHERE idconteudo='1'";
- mysql_query($txtquery);
- move_uploaded_file($_FILES['imagem']['tmp_name'], "img/Produtos/".$imagem);
- }
Advertisement
Add Comment
Please, Sign In to add comment