Php 使用表单插入记录-CodeIgniter
我在foreach之后有个错误。消息是未定义的变量:mapelPhp 使用表单插入记录-CodeIgniter,php,html,mysql,continuous-integration,Php,Html,Mysql,Continuous Integration,我在foreach之后有个错误。消息是未定义的变量:mapel <?php $no=1; foreach($mapel->result() as $row){ ?> <tr> <td><?php echo $no++;?> <td><?php echo "".$ro
<?php
$no=1;
foreach($mapel->result() as $row){ ?>
<tr>
<td><?php echo $no++;?>
<td><?php echo "".$row->$nm_mapel;?></td>
u能否将完整的代码发布到将查询对象分配给$mapel的位置?公共函数insert_mapel($data){$mapel=$this->db->insert(“mapel”,$data);return$mapel;}不能在insert语句上迭代。它返回bool。你想达到什么目标?