$sql="select id,name from teacher limit ".($page-1)*10; $sql.=",10"; //这样写执行正确 $sql="select id,name from teacher limit ".($page-1)*10." ,10";//这样写错误? 为什么啊,抓狂!
$sql="select id,name from teacher limit ".($page-1)*10 [空格]." ,10";