I have select query for the ascending order like...
select DISTINCT
(m.task_name) as TaskName,
m.activity_name as ActivityName,
m.actual_score,
m.score,
m.section_name
from
users u,
som_scores m
where
m.ref_student_id = '".$row['userid']."' and
m.section_name IN('jws1','jws2','jws3','jws4','sm1','srs1','Pws1','Pws2','lws1','sp1')
ORDER BY
m.section_name ASC
I want to set the Section name in ascending order and also make the task name order by like Task1 Task2 and so on..
Means I want to display data like
1) sections name = jws1 and under the section like task Task1 Task2 Task3 Task4
2) sections name = jws2 and under the section like task Task1 Task2 Task3 Task4
And so on..