array #1 info comes from mysql database.. array #2 from users cookie i use explode("," , $sortorder) to store it in array #2...
Is there ne other way by which it can be achieved????? do i need to store the id and sortorder in the cookie or only sortorder will do??? i m really confused! n stuck for last 2 days...
thnx for your help!
Code: Select all
Array #1 (
[0] => Array (
[sortorder] => 1
[id] => 3
[name] => Windows XP
)
[1] => Array (
[sortorder] => 2
[id] => 4
[name] => Windows Vista
)
[2] => Array (
[sortorder] => 3
[id] => 2
[name] => Mac OSX
)
[3] => Array (
[sortorder] => 4
[id] => 1
[name] => Linux
)
)
Array #2 (
[0] => Array (
[sortorder] => 2
)
[1] => Array (
[sortorder] => 1
)
[2] => Array (
[sortorder] => 4
)
[3] => Array (
[sortorder] => 3
)
)