我从数据库拿出一条数据$result = DB::select("SELECT SUM(right_wrong) AS sum FROM `hw_student_answers` where hw_paper_id=$paper_id GROUP BY `hw_paper_id`");然后测试打印结果没有错我想把结果输出到页面上所以<td>{{$result}}</td>结果报错htmlentities() expects parameter 1 to be string, array given,请大神帮我看一下是怎么回事
添加回答
举报
0/150
提交
取消