两个环境都是X3.5
一个是 Linux / PHP v7.4.10 nginx/1.19.2 MySQL5.6.49-log
一个是 Linux / PHP v7.4.12 nginx/1.19.4 MySQL8.0.18
谁帮我看看是哪里的问题呢
<!--{eval $tbid = DB::result(DB::query("SELECT tableid FROM ".DB::table('forum_attachment')." WHERE `tid`= '$thread[tid]' AND `uid`= '$thread[authorid]';"));}-->
<!--{if $tbid != ''}-->
<!--{eval $picount = DB::fetch_all("SELECT aid FROM ".DB::table('forum_attachment_'.$tbid.'')." WHERE `tid`= '$thread[tid]' AND `uid`= '$thread[authorid]' AND `isimage`=1 AND `thumb`=1;");}-->
<!--{eval $picnum = count($picount);}-->
<!--{if $picnum < 1}-->
<!--{eval $litpicnum = '0';}-->
<!--{elseif $picnum > 0 && $picnum < 2}-->
<!--{eval $litpicnum = '1';}-->
<!--{elseif $picnum > 2 && $picnum < 4}-->
<!--{eval $litpicnum = $picnum;}-->
<!--{elseif $picnum > 3 && $picnum < 8 }-->
<!--{eval $litpicnum = '4';}-->
<!--{elseif $picnum > 7}-->
<!--{eval $litpicnum = '8';}-->
<!--{/if}-->
<!--{if $litpicnum}-->
<!--{eval $covers = DB::fetch_all("SELECT attachment,aid,description FROM ".DB::table('forum_attachment_'.$tbid.'')." WHERE `tid`= '$thread[tid]' AND `uid`= '$thread[authorid]' AND `isimage`=1 AND `thumb`=1 LIMIT 0,$litpicnum;");}-->