I have my data in each array but they aren't being sorted. This is the code I have used to get each part in each array...
$query = "SELECT cat_id, cat_name FROM categories WHERE parent = '$id'";
//run the query on the database
$result = $this->query($query);
$count = 0;
while ($row = mysql_fetch_array($result))
{
$idarray[$count]["cat_id"] = $row["cat_id"];
$namearray[$count]["cat_name"] = $row["cat_name"];
$count++;
}
So I have one array called idarray, with just the cat_id's in and then the other array with the names. When I use the multisort function on the arrays nothing happens.
Thanks