Pergunta

I have an error after foreach. the message is Undefined variable: mapel

<?php 
            $no=1;
            foreach($mapel->result() as $row){ ?>
                <tr>
                    <td><?php echo $no++;?>
                    <td><?php echo "".$row->$nm_mapel;?></td>

Nenhuma solução correta

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top