Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi everybody!
i m a new php developer and i m surprised how powerfull php arrays are!
however i facing a problem. i have following structure in my databaseCode: Select all
cat_id name parent_id
1 Category 10
2 computer 1
4 library 1
5 college 1
6 course 5
7 mca 6
8 BCA 6
10 root NULL
12 laptop 2Code: Select all
$workspace = Array(
"Category" => Array(
"Desktop" => Array(
"Keyboard",
"Login_Failure",
"Mouse"
),
"Fax" => Array(
"Connection",
"Viewing"
),
"Laptop" => Array(
"Software_Install"
)
)
);do some one know how to do it?
Weirdan | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]