//添加商品SQL mysql_query("insert into t_product ( p_id categorycode, subcategorycode, price, shopid ) values ( '$categorycode', '$subcategorycode', '$price', $s_id )");
JoinMC智能客服
JoinMC智能客服,帮您熬夜加班,7X24小时全天候智能回复用户消息,自动维护媒体主页,全平台渠道集成管理,电商物流平台一键绑定,让您出海轻松无忧!
下载
回复讨论(解决方案)
list($pid) = mysql_fetch_row(mysql_query("select max(p_id)+1 from t_product"));//添加商品SQL mysql_query("insert into t_product ( p_id categorycode, subcategorycode, price, shopid ) values ( '$p_id', '$categorycode', '$subcategorycode', '$price', $s_id )");