我从数据库拿出一条数据
$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,请大神帮我看一下是怎么回事
小轩1986