Adam Preece wrote:

> hi all,
> 
> please forgive me if i do not make sense, ill try my best to explain.
> 
> 
> i have this array or arrays.
> 
> Array ( [name] => super duplex stainless steels [id] => 30 [page_cat_id]
> => 10 [main_nav] => true [cat_name] => material range ) Array ( [name] =>
> standard stainless steels [id] => 31 [page_cat_id] => 10 [main_nav] =>
> true [cat_name] => material range )
>  Array ( [name] => non ferrous [id] => 32 [page_cat_id] => 10 [main_nav]
>  => true [cat_name] => material range )
> Array ( [name] => carbon based steels [id] => 33 [page_cat_id] => 10
> [main_nav] => true [cat_name] => material range )
> 
> is it possible to build an array  and use the [cat_name] as the key and
> assign all the pages to that cat_name?
> 
> what im trying to achieve is a category of pages but i want the cat_name
> as the key to all the pages associated to it
> 
> hope i make sense
> 
> kind regards
> 
> Adam

How is this array created? If it is from a database, you could probably
modify the query to give you what you want.


Cheers
-- 
David Robley

Show me a sane man. I'll cure him for you.
Today is Prickle-Prickle, the 13rd day of Confusion in the YOLD 3177. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to