ecshop商品相册提示错误操作怎么解决
2个回答
展开全部
找到 admin/attr_img_upload.php 把下面的替换掉就可以了
//if(!$goods_id or $goods_attr_id=='-1' )
//{
// echo '<center><br>错误操作!</center>';
// exit;
//}
if(!$goods_id or $goods_attr_id=='-1' )
{
$up_sql="SELECT AUTO_INCREMENT from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='数据库名' AND TABLE_NAME='ecs_goods'";
// $up_sql="SELECT AUTO_INCREMENT from INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME=".$GLOBALS['ecs']->table('goods') ;
$row = $GLOBALS['db']->getRow($up_sql);
$goods_id=$row['AUTO_INCREMENT'];
}
//if(!$goods_id or $goods_attr_id=='-1' )
//{
// echo '<center><br>错误操作!</center>';
// exit;
//}
if(!$goods_id or $goods_attr_id=='-1' )
{
$up_sql="SELECT AUTO_INCREMENT from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='数据库名' AND TABLE_NAME='ecs_goods'";
// $up_sql="SELECT AUTO_INCREMENT from INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME=".$GLOBALS['ecs']->table('goods') ;
$row = $GLOBALS['db']->getRow($up_sql);
$goods_id=$row['AUTO_INCREMENT'];
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询