Search found 2 matches

by aidave
Thu Sep 25, 2008 1:37 pm
Forum: PHP - Code
Topic: Sorting array question
Replies: 2
Views: 94

Re: Sorting array question

Thanks for the reply. Unfortunately the data is not from SQL, i suppose it could be dumped into temp sql table then sorted back, but seems redundant... Its working now!       foreach ($rows as $key => $row) {         $employees[$key]  = $row['employee_id'];         $workDates[$key] = $row['work_day'...
by aidave
Thu Sep 25, 2008 12:17 pm
Forum: PHP - Code
Topic: Sorting array question
Replies: 2
Views: 94

Sorting array question

Hi, hopefully this question is easy. I have a big array, made like this:   $row['name'] = "employee"; $row['etc1'] = "value1"; $row['date'] = "date"; $row['etc2'] = "value3"; $row['etc3'] = "value4"; $rows[] = $row; // keeping adding new $row to $row...