3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php include("cabecalho.php"); include ("conecta.php"); include ("banco-fornecedor.php");?> <?php $razao_social = $_GET["razao_social"]; $nome_fantasia = $_GET["nome_fantasia"]; $cpf_cnpj = $_GET["cpf_cnpj"]; $ie = $_GET["ie"]; $endereco = $_GET["endereco"]; $bairro = $_GET["bairro"]; $cidade = $_GET["cidade"]; $estado = $_GET["estado"]; $email_contato = $_GET["email_contato"]; $telefone = $_GET["telefone"]; $celular = $_GET["celular"]; $obs = $_GET["obs"]; // abre a conecção no mysql - devolve a conexão com o banco de dados if(insereFornecedor($conexao, $razao_social, $nome_fantasia, $cpf_cnpj, $ie, $endereco, $bairro, $cidade, $estado, $email_contato, $telefone, $celular, $obs)){ // verifica se a inserção foi completa ?><!-- Se sim, exibe a mensagem abaixo --> <p class="text-success">Fornecedor: <?= $razao_social; ?>,Nome Fantasia: <?= $nome_fantasia?> adicionado sucesso!</p> <?php }else{ $msg=mysqli_error($conexao); ?> <!-- Se nao, exibe a mensagem abaixo --> <p class="text-danger">Produto <?= $nome_fantasia; ?> não foi registrado com sucesso: <?= $msg ?></p> <?php } ?> <?php include("rodape.php"); ?>
Output for 7.0.0 - 7.2.0
Warning: include(cabecalho.php): failed to open stream: No such file or directory in /in/HXLrv on line 1 Warning: include(): Failed opening 'cabecalho.php' for inclusion (include_path='.:') in /in/HXLrv on line 1 Warning: include(conecta.php): failed to open stream: No such file or directory in /in/HXLrv on line 2 Warning: include(): Failed opening 'conecta.php' for inclusion (include_path='.:') in /in/HXLrv on line 2 Warning: include(banco-fornecedor.php): failed to open stream: No such file or directory in /in/HXLrv on line 3 Warning: include(): Failed opening 'banco-fornecedor.php' for inclusion (include_path='.:') in /in/HXLrv on line 3 Notice: Undefined index: razao_social in /in/HXLrv on line 8 Notice: Undefined index: nome_fantasia in /in/HXLrv on line 9 Notice: Undefined index: cpf_cnpj in /in/HXLrv on line 10 Notice: Undefined index: ie in /in/HXLrv on line 11 Notice: Undefined index: endereco in /in/HXLrv on line 12 Notice: Undefined index: bairro in /in/HXLrv on line 13 Notice: Undefined index: cidade in /in/HXLrv on line 14 Notice: Undefined index: estado in /in/HXLrv on line 15 Notice: Undefined index: email_contato in /in/HXLrv on line 16 Notice: Undefined index: telefone in /in/HXLrv on line 17 Notice: Undefined index: celular in /in/HXLrv on line 18 Notice: Undefined index: obs in /in/HXLrv on line 19 Fatal error: Uncaught Error: Call to undefined function insereFornecedor() in /in/HXLrv:22 Stack trace: #0 {main} thrown in /in/HXLrv on line 22
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Warning: include(cabecalho.php): failed to open stream: No such file or directory in /in/HXLrv on line 1 Warning: include(): Failed opening 'cabecalho.php' for inclusion (include_path='.:') in /in/HXLrv on line 1 Warning: include(conecta.php): failed to open stream: No such file or directory in /in/HXLrv on line 2 Warning: include(): Failed opening 'conecta.php' for inclusion (include_path='.:') in /in/HXLrv on line 2 Warning: include(banco-fornecedor.php): failed to open stream: No such file or directory in /in/HXLrv on line 3 Warning: include(): Failed opening 'banco-fornecedor.php' for inclusion (include_path='.:') in /in/HXLrv on line 3 Notice: Undefined index: razao_social in /in/HXLrv on line 8 Notice: Undefined index: nome_fantasia in /in/HXLrv on line 9 Notice: Undefined index: cpf_cnpj in /in/HXLrv on line 10 Notice: Undefined index: ie in /in/HXLrv on line 11 Notice: Undefined index: endereco in /in/HXLrv on line 12 Notice: Undefined index: bairro in /in/HXLrv on line 13 Notice: Undefined index: cidade in /in/HXLrv on line 14 Notice: Undefined index: estado in /in/HXLrv on line 15 Notice: Undefined index: email_contato in /in/HXLrv on line 16 Notice: Undefined index: telefone in /in/HXLrv on line 17 Notice: Undefined index: celular in /in/HXLrv on line 18 Notice: Undefined index: obs in /in/HXLrv on line 19 Fatal error: Call to undefined function insereFornecedor() in /in/HXLrv on line 22
Process exited with code 255.