时间:2021-07-01 10:21:17 帮助过:2人阅读
//添加商品SQL
mysql_query("insert into t_product
(
p_id
categorycode,
subcategorycode,
price,
shopid
)
values
(
'$categorycode',
'$subcategorycode',
'$price',
$s_id
)");
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
)");