Hi,
I read Brians response and for this problem multisorot is NOT what you want.
first and formost I think this could be a lot simpler if you took
array("Job 4","Fear","Not Done")
and made Job 4 just 4.. then turn THAT into the main key.
so the revised array constructor would look like this. wraped in a loop ; loping for the amount of times there were to be elements or Jobs ---- so:
for ($i=1; $i<=$num_jobs; $i++)
{
$job_num =
//wherever you get your Job data
//parse this for just the num
$arr_data[$job_num] =
array (
'title' = $job_title,
'status'= $job_staus
);
}
Once this is completed the sorting will be 10 times easier as the jobs can be sorted by ordering the array[keys]!
Then use a function to parse the rest:
ussing 2 (list,each) or foreach to scoop the contents onto the screen.
Well, that one just came to me. Not easy but I've done this sort of thing before building a message board and it was ussing CLASSES and order list! OUCH.. Like the one they use here.
Good luck - let me know,
COPE