xeel;10916467 wrote:I'd recommend to read the menus from a profile parameter. For example:
- create two tables in the database: 1 for the profiles, 1 for menus names, links and permissions for each profile;
- on the menu-frame page load the menus by querying the database by profile type;
- when selecting a user/profile save its type parameter in the session so it could be used to make a query to select the menus by this profile
If you do it this way you'd have a dynamic menu list which depends on current profile. Is that what you wanted?
No, actually it's not exactly what I wanted: anyway, thanks a lot for your
answer xeel, I found the solution, I was making a stupid mistake in posting
the variable, instead of writing:
SELECT --whatever-- FROM table WHERE id='$showrecord' (right syntax)
I was doing:
SELECT --whatever-- FROM table WHERE id=' . $showrecord.' (wrong syntax)
of course loading the php page addressed the variable showrecord wasn't
parsed correctly, I just took off my mind!
Thank you very much, I appreciate
🙂