Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $grup_id=$this->input->get('grup_id');
- $produk_id=$this->input->get('produk_id');
- $get=$this->db->get_where('sma_product_prices',array('product_id'=>$produk_id,'price_group_id'=>$grup_id))->result();
- foreach($get as $data){
- if($get){
- if($data->price!==NULL || $data->price!=="")
- echo $data->price;
- else
- echo 'Data tidak ada!';
- }
- else
- echo "Error!";
- }
Add Comment
Please, Sign In to add comment