here's my issue. i have an array from a mysql db.
name | employee | email
name2 | director | email2
name3 | assistant director| email3
and then i have an array with positions in it like the following:
$staffsort = array("director", "assistant-director", "employee"
;
how do i sort the result array from the mysql query to be in the order of the staff order array? i've looked all over, can't seem to find the answers.
thanks
Moooink
name | employee | email
name2 | director | email2
name3 | assistant director| email3
and then i have an array with positions in it like the following:
$staffsort = array("director", "assistant-director", "employee"
how do i sort the result array from the mysql query to be in the order of the staff order array? i've looked all over, can't seem to find the answers.
thanks
Moooink