Created
February 10, 2017 17:25
-
-
Save fininhors/ae739cdfcb572023e76e5faa1c2f0202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(isset($_FILES['imagem01']['name']) && $_FILES["imagem01"]["error"] == 0) { | |
| $resultado01 = upload::imagem($_FILES['imagem01'], "imagem01", "ImagensEmpresa","png|jpg|gif|jpeg|pjpeg",array()); | |
| $sqlUp = "UPDATE empresa SET imagem01 = '".$resultado01."' WHERE codempresa = ".$_POST["codempresa"]; | |
| db_query($conexao, $sqlUp); | |
| } | |
| if(isset($_FILES['imagem02']['name']) && $_FILES["imagem02"]["error"] == 0) { | |
| $resultado02 = upload::imagem($_FILES['imagem02'], "imagem02", "ImagensEmpresa","png|jpg|gif|jpeg|pjpeg",array()); | |
| $sqlUp = "UPDATE empresa SET imagem02 = '".$resultado02."' WHERE codempresa = ".$_POST["codempresa"]; | |
| db_query($conexao, $sqlUp); | |
| } | |
| if(isset($_FILES['imagem03']['name']) && $_FILES["imagem03"]["error"] == 0) { | |
| $resultado03 = upload::imagem($_FILES['imagem03'], "imagem03", "ImagensEmpresa","png|jpg|gif|jpeg|pjpeg",array()); | |
| $sqlUp = "UPDATE empresa SET imagem03 = '".$resultado03."' WHERE codempresa = ".$_POST["codempresa"]; | |
| db_query($conexao, $sqlUp); | |
| } | |
| if(isset($_FILES['imagem04']['name']) && $_FILES["imagem04"]["error"] == 0) { | |
| $resultado03 = upload::imagem($_FILES['imagem04'], "imagem04", "ImagensEmpresa","png|jpg|gif|jpeg|pjpeg",array()); | |
| $sqlUp = "UPDATE empresa SET imagem04 = '".$resultado04."' WHERE codempresa = ".$_POST["codempresa"]; | |
| db_query($conexao, $sqlUp); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment