0
MySQL查詢子句我需要一些幫助解決問題與MySQL,是有可能的數組傳遞給函數,然後運行一個比賽agains數組值?幫助與笨
我有這個疑問
function getMenu($cookieId) {
$this->db->select('*');
$this->db->from('categoryTable');
$this->db->join('userMenuTable', 'categoryTable.categoryId = userMenuTable.categoryId', 'left');
$this->db->where('userMenuTable.cookieId', $cookieId);
$query = $this->db->get();
return $query->result_array();
}
使用$query
數組返回可以查詢數據庫,並從不匹配的數組值表中的所有值?
您可以發佈'$ query'的內容是什麼?我自己沒有使用CI,但瞭解數組返回的方式將有助於回答如何調用查詢。 –