我希望这种类型的输出以这种格式从数据库中获取 task_name
Task 10 Task 2 Task 3 Task 5........
我的查询是
SELECT task_name, section_name, ref_student_id
FROM scores
WHERE ref_student_id = '".$studentid."'
AND section_name = 'sm1'
GROUP BY task_name
所以我想这样输出..
Task 2 Task 3 Task 5 Task 10........