" WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND is_delete = 0";
修改为
" WHERE $where AND is_on_sale = 1 AND
is_alone_sale = 1 AND is_delete = 0 order by
INSTR('".$_COOKIE['ECS']['history']."',goods_id)";试一下吧,看是不是按浏览先后进行排序了!
" WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND is_delete = 0";
修改为
" WHERE $where AND is_on_sale = 1 AND