Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. public function getManufacturerDescriptions($manufacturer_id) {
  2. //        $manufacturer_description_data = array();  //array zakomentiran, ker ni delal, vraca samo description iz prve vrstice selecta
  3.  
  4.         $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "manufacturer_description WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
  5.  
  6. //        foreach ($query->rows as $result) {
  7. //            $manufacturer_description_data = array(
  8. //                'description' => $result['description']
  9. //            );
  10. //        }
  11.  
  12.         return $query->row['description'];
  13.     }
Add Comment
Please, Sign In to add comment