var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Working with two menu
I use mySQL 4.1
I have a PHP script that show two select menu.
The first menu show all users from mySQL table register
First Menu Second Menu
I press a button to put two users to Second Menu. I have a picture here.
Now when I press on submit, my PHP script add all users from "Second Menu" (yo2lux, zoli) to group 2.
This is my table user2groups
user with id 1 (yo2lux) is added to group 2
user with id 3 (zoli) is added to group 2
Now I run again my PHP script. I see the two menu.
In first menu I want to see all users from table register without : yo2lux and zoli because this users already added to user2groups table.
Exist a solution to solve this problem ?
I appreciate any answer, and thank you very much !
the other solution would be to use two session variables.
if the menu1 session is not set then get the data from the database
if the add item button is set remove the item from $_SESSION['menu1'] array and add it to $_SESSION['menu2'] array. then vice versa.