when I try to add menu more than three it is showing me error menu nr 3 must be an array
but same thing working in your codeIgniter
// loop through the $menu array() and build the parent menus.
for ($i = 1; $i <= count($menu); $i++)
here my database table
