php连接数据库用function就报错

511
@Ta 2021-01-05 2793点击
被下沉
$sqlstr = "select * from td_mjmk where zt='$zt' order by sj asc limit ".($page-1)*$pageSize .",{$pageSize}";


这个放在function里面就报错,不放里面就正常,You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

大佬们谁知道啥情况
回复列表(7|隐藏机器人聊天)
添加新回复
回复需要登录