I have an array which itself contains two arrays - one holds item ids and the other holds the order of the item
They look something like this:
Array
(
[item_order] => Array
(
[0] => 0
[1] => 1
[2] => 2
)
[item_id] => Array
(
[0] => 20
[1] => 34
[2] => 24
)
)
What I now need to do is update each items row order based on its id
Not sure where to start with this one though.
The end result should look something like
item_id item_name item_order
------------------------------------
20 xxxxx 0
34 yyyyy 1
24 zzzzz 2