0){ return true; } else { return false; } } function getchild($id){ echo "
    "; $query = "SELECT * FROM menu where parentid = '$id' order by `index`"; $result = mysql_query($query) or die('Error, query failed insert subcatg'); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { if (checkchild($row['id'])){ echo "
  • ".$row['menuname'].""; getchild($row['id']); } else { echo "
  • ".$row['menuname']."
  • ";}}echo "
";}?> " ; //
  • صفحه اصلی
  • " $query = "SELECT * FROM menu where parentid = '0' and `lang` = '$language' order by `index`"; $result = mysql_query($query) or die('Error, query failed insert subcatg'); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "
  • ". $row['menuname'] .""; if(checkchild($row['id'])){ getchild($row['id']);} echo "
  • "; } echo ""; ?>
    "."
    "; } } ?>
         

     

    Copyright © 2010 Tosee Resan E Pasargad. All rights reserved. Powered By Dadeh Negar Co.