Hello,
i'm trying to create something similar to a classified ad script and im stuck in how to go about displaying the results queried in from the database. in some instance i do have 4 layers of subcategories.
looking to have 4 to 5 columns of categories to display.
like to only display only the first 2 categories:
ex: buy and sell services
-- books -- jobs
-- bicks -- contract jobs
-- tables -- etc
-- chairs etc -- etc
any ideas as to how to accomplish this?
sample results
Array
(
[0] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => buy and sell
[parLev3] => 2
[catLev3] => antiques
[parLev4] => 12
[catLev4] => bottle
)
[1] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => buy and sell
[parLev3] => 2
[catLev3] => art, collectibles
[parLev4] =>
[catLev4] =>
)
[2] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => buy and sell
[parLev3] => 2
[catLev3] => appliances
[parLev4] =>
[catLev4] =>
)
[3] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => buy and sell
[parLev3] => 2
[catLev3] => baby items
[parLev4] =>
[catLev4] =>
)
[4] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => buy and sell
[parLev3] => 2
[catLev3] => books
[parLev4] =>
[catLev4] =>
)
[5] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => sports
[parLev3] => 17
[catLev3] => bicycles
[parLev4] =>
[catLev4] =>
)
[6] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => sports
[parLev3] => 17
[catLev3] => football equipment
[parLev4] =>
[catLev4] =>
)
[7] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => sports
[parLev3] => 17
[catLev3] => hockey equipment
[parLev4] =>
[catLev4] =>
)
[8] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => sports
[parLev3] => 17
[catLev3] => baseball equipment
[parLev4] =>
[catLev4] =>
)
[9] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => sports
[parLev3] => 17
[catLev3] => other equipment
[parLev4] =>
[catLev4] =>
)
[10] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => just friends
[parLev4] =>
[catLev4] =>
)
[11] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => looking for long last
[parLev4] =>
[catLev4] =>
)
[12] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => missed connection
[parLev4] =>
[catLev4] =>
)
[13] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => men seeking men
[parLev4] =>
[catLev4] =>
)
[14] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => men seeking women
[parLev4] =>
[catLev4] =>
)
[15] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => women seeking men
[parLev4] =>
[catLev4] =>
)
[16] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => personals
[parLev3] => 8
[catLev3] => women seeking women
[parLev4] =>
[catLev4] =>
)
[17] => Array
(
[ixdLev1] => 1
[catLev1] => category
[parLev2] => 1
[catLev2] => pets
[parLev3] =>
[catLev3] =>
[parLev4] =>
[catLev4] =>
)
)