Location: PHPKode > scripts > Open4Listing > elements/menu.php
<table border="0" width="100%" cellspacing="1" cellpadding="3">
<?php 
$menu = mysql_query("SELECT * FROM judete order by judete asc")or die(mysql_error()); 
while($mymenu = mysql_fetch_array( $menu )) 
{
$judet=$mymenu[judete];
$categlnk=str_replace(" ", "+",$judet);

echo "<tr><td bgcolor=#C0C0C0><b><a href=categ.php?categ=".$categlnk."><font color=#FFFFFF face=Arial size=2>".$judet."</a></font></b></td></tr>";
$menu2 = mysql_query("SELECT * FROM localitati where judet like '$judet' order by localitate asc")or die(mysql_error()); 
while($mymenu2 = mysql_fetch_array( $menu2 )) 
{
$subcateglnk=str_replace(" ", "+",$mymenu2["localitate"]);
echo "<tr><td bgcolor=#999999><a href=subcateg.php?subcateg=".$subcateglnk."&categ=".$categlnk."><font color=#FFFFFF size=2 face=Arial>".$mymenu2[localitate]."</font></a></td></tr>";
}}
?>

</table>
Return current item: Open4Listing