-3
我想從這樣的一個表中的值:如何從prestashop中獲取mysql的值?
SELECT id_image FROM `ps_image` WHERE id_product = 903 limit 1
我怎麼能在這的Prestashop SQL命令集成?
我想從這樣的一個表中的值:如何從prestashop中獲取mysql的值?
SELECT id_image FROM `ps_image` WHERE id_product = 903 limit 1
我怎麼能在這的Prestashop SQL命令集成?
$product_id = '903';
$query = Db:: getInstance()->getRow(
'SELECT id_image FROM '._ DB_PREFIX_.'image WHERE id_product ='. $product_id
);
使用$ query變量獲取圖像的id。