表格categories
(TABLE_CATEGORIES),有田地:categories_id
,oul_id
表categories_description
(TABLE_CATEGORIES_DESCRIPTION), 这些领域:categories_id
,categories_name
如今,根据<代码>,$=父母_id 我想得到<条码>分类——姓名代码>和<条码> 分类_id,这是我的指挥,但显示的是图马尔错误。
$query = "select c.categories_id, cd.categories_name from " .
TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id=cd.categories_id and c.parent_id=".$cPath;
the error:1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near at line 2