Code: Select all
echo'<a href="index.php?id='.$id.'&p='.$row["id"].'"><li style="width:207px; background-color:#bcbec0; color:#ffffff; border:0px; font-weight:bold;" class="mainli">'.$row["pagetitle"].'</li></a>';
$sql2 = "Select * from $table where parent = $row[id] and published = 1 order by menuindex asc";For example it generates:
Nokia
Samsung
Siemens
Motorola
When I lick on Siemens, the list is displayed as follows:
Siemens
Nokia
Samsung
Motorola