<?php
foreach($products_list as $row):
?>
<tr>
<td class="hl">
<?php echo $row->id; ?></td>
<td class="hl">
<?php
$query = $this->db->get_where('ou118_products_cid', array('productscid_id' => $row->cid_id), '1','1');
var_dump($query);
?>
</td>
<td class="hl">
<?php echo $row->name; ?></td>
<td class="hl">
<?php echo $row->bianhao; ?></td>
<td class="hl">
<?php echo $row->last_date; ?></td>
<td class="hc">
<input type="button" name="button2" id="button2" value="编辑" onClick="" />
<input type="button" name="button2" id="button2" value="删除" onClick="" />
</td>
</tr>
<?php
endforeach;
?>