I would like to display all categories randomly along with collections also randomly.
$array_category[]=array("category"=>"MIEJSCA","collection"=>"Miasta","collection"=>"Uzdrowiska polskie");
$array_category[]=array("category"=>"SZTUKA","collection"=>"Łódzkie Witraże");
$array_category[]=array("category"=>"KRAJOBRAZ","collection"=>"Karkonosze");
$array_category[]=array("category"=>"MIASTA","collection"=>"Łódź Nocą");
$array_category[]=array("category"=>"ZAMKI","collection"=>"Szlakiem Orlich Gniazd","collection"=>"Polskie Zamki Gotyckie");
shuffle( $array_category );
$randNumKat = rand( 1, count( $array_category ) );
foreach ( $array_category as &$thiskat)
{
echo '<div class="kat">
<a href="?kategoria='.$thiskat["category"].'">'
.$thiskat["category"].
'</a>
<kol>
<kol_naz>
<a href="?kolekcja='.$thiskat["collection"].'">
'.$thiskat["collection"].'
</a>
</kol_naz>
</kol>
</div>';
}
unset( $thiskat );
This code displays the categories correctly, but I do not know how to display the collections correctly by category. Please help.