require_once './Alunos.php'; if(isset($_POST['salvar'])){ $id_ed = $_POST['id_editar']; $nome_ed = $_POST['nome_editar']; $nota_ed = $_POST['nota_editar']; //$nota_ed = $_POST['nota_editar']; //$array_editar = array($nome_ed,$nota_ed); $teste = new Alunos(require_once './conexao.php'); $teste->editar($id_ed,$nome_ed,$nota_ed); echo '<table>' . '<tr>' . '<td> ID: '.$id_ed.'</td>' . '<td> NOME: '.$nome_ed.'</td>' . '<td> NOTA: '.$nota_ed.'</td>' . '</tr>' . '</table>'; }else{ echo "Erro fatal"; } ?> <? php else:?> <?php header("Location:index.php?page=list_alunos");?>