在我的Prestashop接觸形式有存在這種代碼的Prestashop聯繫表格主題
SELECT * FROM '._DB_PREFIX_.'contact c LEFT JOIN '._DB_PREFIX_.'contact_lang cl ON c.id_contact = cl.id_contact WHERE cl.id_lang = '.(int)($id_lang).' ORDER BY name ASC
其中創建此查詢
SELECT * FROM ava_contact c LEFT JOIN ava_contact_lang cl ON c.id_contact = cl.id_contact WHERE cl.id_lang =6 ORDER BY name ASC LIMIT 0 , 30
,並顯示正常結果
但當DB類執行此代碼
Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT * FROM '._DB_PREFIX_.'contact c LEFT JOIN '._DB_PREFIX_.'contact_lang cl ON c.id_contact = cl.id_contact WHERE cl.id_lang = '.(int)($id_lang).' ORDER BY name ASC');
除了在「名稱」字段中顯示的所有值,所有的值有空字符串,嗯,,這是錯誤的一部分?
感謝,