Domanda

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>

Nessuna soluzione corretta

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top