¡@

Home 

php Programming Glossary: currlevel

Categories with sub PHP / MYSQL

http://stackoverflow.com/questions/10215980/categories-with-sub-php-mysql

arrayCategories 0 function createTree array currentParent currLevel 0 prevLevel 1 foreach array as categoryId category if currentParent.. categoryId category if currentParent category 'pid' if currLevel prevLevel echo ul if currLevel prevLevel echo li echo ' li id.. category 'pid' if currLevel prevLevel echo ul if currLevel prevLevel echo li echo ' li id '. categoryId.' onclick child..