<?php if($navinfor['file']) { ?> [e:loop={"select * from phome_enewsfile_1 where filename=right('$navinfor[file]',36) order by id desc",0,24,0,'',''}] <?=$bqr['no']?> [/e:loop] [ 下载 ] <?php } else { ?> <?php } ?>
辨认出问题:如果附件扩展名不为三位,调用文件名失败。
可以自行修正right('$navinfor[file]',36)撷取数字或命令
效果如下