Hotlist Express menu


"; $foldedit = "/php/hl/editFold.php?entry_id="; } //select all folders //$query = "SELECT entry_id,foldid,path,description,added FROM entry_info,fold_info where path like '".$foldPath."%' AND fold_url=1 AND fold_info.foldid=entry_info.link_id order by path"; $query = "SELECT entry_id,fold_info.foldid,fold_info.path as fp,fi.path,fold_info.name,fold_info.description,fold_info.added FROM entry_info,fold_info,fold_info fi where fold_info.path like '/hl%' AND fold_url=1 AND fold_info.foldid=entry_info.link_id AND entry_info.folder_id=fi.foldid order by fi.path+fold_info.name"; //echo "Query=".$query."
\n"; $result = mysql_query($query,$db); $array1 = array(); while ($myrow = mysql_fetch_array($result)) { $key = strtolower($myrow["path"].$myrow["name"]."/"); //echo "$key
"; $array1[$key] = $myrow; } ksort($array1); reset ($array1); while (list ($key, $val) = each ($array1)) { $foldPath = $val["path"].$val["name"]."/"; $pos = 1; $off = strpos($foldPath,"/",1); if (isset($_SESSION["rmrrUser"])) { echo "$key
"; } while ($off > 0) { $pos = 1 + $off; if ($pos < strlen($foldPath)) { $rtnpath = substr($foldPath,0,$pos); ?> \n"; ?> "> <? echo $val["> "> <? echo ">