我希望将所有没有attribute_id = 12的产品添加到oc_product_attribute中,1064 -您的SQL语法中有一个错误;请查看与您的MySQL服务器版本对应的手册,了解要使用的正确语法,'12)在第1行处选择ocp.product_id from oc_product ocp where ocp.product_id not in (SE
insert into`oc_product_attribute` (ocp.product_id,
似乎第三个下拉列表没有从数据库中获取数据。确切的问题是,来自用户模型的模型方法get_by_ocp_id($ocp_id)并不是从第二个下拉列表中获取id。我把这段代码摘自youtube上的教程:。$occupation->ocp_id.'">'.$occupation->ocp_name.'public function get_users(){
$ocp_id =$this->input-