php Programming Glossary: prevlevel
Categories with sub PHP / MYSQL http://stackoverflow.com/questions/10215980/categories-with-sub-php-mysql 0 function createTree array currentParent currLevel 0 prevLevel 1 foreach array as categoryId category if currentParent category.. category if currentParent category 'pid' if currLevel prevLevel echo ul if currLevel prevLevel echo li echo ' li id '. categoryId.'.. 'pid' if currLevel prevLevel echo ul if currLevel prevLevel echo li echo ' li id '. categoryId.' onclick child this.id span..
|