Can anybody help me to order the pages custom CMS pagemanager done in php ?
I have a database table in which page(article) managing. id - parentId - content- title - order - etc
I selected and displayed this in html table as a tree order(parent then child likewise).. where i put edit/delete options and also one column to ORDER the pages , I want order column with up/down arrows .. and when clicking on that it should swap corresponding Order field of database table(it contains some numbers). The problem is that here it contains parent and its children so arrows should be placed in correct order ... ie do not swap a child and parent. only column with same parent id (if there) should be swapped..