This is my array, as how it is pulling info from the database. But I am having some problems displaying.
I want it display like this:
Desktop
Email
All....the names...
Backup
Machine
For clarify the "bkup" machine belongs to the backup service. and the rest of the machine is Email.
then
Unix
*Firewall
Machines
I will have more data and more fields to put after machine. ANy idea? One of the problem is Desktop, Unix, Email has multiple entires.
--
array(2) {
["Desktop"]=>
array(11) {
[0]=>
string(8) "MAIL"
[1]=>
string(10) "MEETING"
[2]=>
string(6) "187"
[3]=>
string(6) "186"
[4]=>
string(6) "JEEVES"
[5]=>
string(7) "MAIL1"
[6]=>
string(7) "MAIL2"
[7]=>
string(7) "MAIL3"
[8]=>
string(6) "NEWMAN"
[9]=>
string(8) "BKUP"
[10]=>
string(6) "ALTAIR"
}
["Unix"]=>
array(10) {
[0]=>
string(12) "console"
[1]=>
string(10) "chiws"
[2]=>
string(8) "erp"
[3]=>
string(10) "kurbws"
[4]=>
string(12) "prod"
[5]=>
string(19) "prod-backup"
[6]=>
string(12) "chiprod"
[7]=>
string(19) "Brickchiprod-backup"
[8]=>
string(17) "Brickchiws-backup"
[9]=>
string(5) "Brick"
}
}
array(2) {
["Desktop"]=>
array(2) {
[0]=>
string(6) "E-Mail"
[1]=>
string(6) "BACKUP"
}
["Unix"]=>
array(1) {
[0]=>
string(8) "FIREWALL"
}
}