meka product catelog 1k .... eth view wenne na product details....
controller
public function Show_all_products()
{
$this->load->model('billing_model');
$data ['query'] = $this->billing_model->viewauction();
$this->load->view('item/b', $data);
}
model
{ return $this->db->get('items')->result();
$query = $this->db->get('items');
return $query->result() ;
}
view
<tbody>
<?php foreach($query as $row): ?>
<tr>
<td><?php echo $row->item_id; ?></td>
<td><?php echo $row->item_name; ?></td>
<td><?php echo $row->item_size; ?></td>
<td><?php echo $row->item_price; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
controller
public function Show_all_products()
{
$this->load->model('billing_model');
$data ['query'] = $this->billing_model->viewauction();
$this->load->view('item/b', $data);
}
model
{ return $this->db->get('items')->result();
$query = $this->db->get('items');
return $query->result() ;
}
view
<tbody>
<?php foreach($query as $row): ?>
<tr>
<td><?php echo $row->item_id; ?></td>
<td><?php echo $row->item_name; ?></td>
<td><?php echo $row->item_size; ?></td>
<td><?php echo $row->item_price; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
අනිත් වැරැද්ද දෙකෙන්ම වෙන්නේ එකම දේනේ 