function GetImages() { if (!isset($this->_SKU)) { return; } // $query = "SELECT * from ".$this->_config->getDbName().".".$this->_config->getImageTable()." WHERE product_sku=".$this->_SKU; $query = "SELECT * FROM product_images WHERE product_sku={$this->_SKU}"; // $conn = mysql_connect(ini_get("mysql.default_host"),$this->_config->getUsername(),$this->_config->getPassword()); $result = $this->_DB->Query($query); $this->_ProductImages = array(); while ($row = mysql_fetch_array($result)) { array_push($this->_ProductImages, new ProductImage($row)); } if (count($this->_ProductImages) == 0) { $img = new ProductImage(); $img->SetUrl("/images/noimageavailable.png"); array_push($this->_ProductImages, $img); } mysql_free_result($result); return $this->_ProductImages; }