Thanks for the reply but I have already seen it. Kindly tell me that how can I restrict in your code because the reference website code is very different and I already spent time to do the task but failed.

It will be very helpful if you give me a sample code related to your code.

The script works fine in IE and FIREFOX but in CHROME sometimes appears a huge padding in the horizontal submenu; and sometimes it gets right when the page is refreshed. The vertical menu got problems as well. (sorry for my English). Please, have a look at http://www.cursospracticosbogota.com/node/node-hp.php

Hi. I recently purchased your code and I am using it in a role-based menu system. Instead of returning all the menu items available, I need to join another table to get the ids of the pages that a user has permission to access.

What is the best way to do this? I was thinking to create a new function called getRoleMenu which would be similar to getMenu. I’m relatively new to PDO and any help would be appreciated.