Commit | Line | Data |
---|---|---|
88c38b26 | 1 | <?php |
ae8c33ec TM |
2 | $sql = 'SELECT model_name,model_price_out,producer_name'. |
3 | ' FROM model LEFT JOIN producer USING(producer_id)'. | |
4 | ' WHERE model_price_out > 0 AND category_id > 0'; | |
de42ea13 | 5 | $result = $this->db->safe_query_fetch($sql); |
ae8c33ec | 6 | die(json_encode($result)); |