Hi!
Im writing new scripts for my site, i bought a couple of books on php, and its going well - i need a bit of help though.
I am using a user system, with four levels, 1, 2, 3, and 4. These are stored under column "level" under table "login" i want to make a little script which allows a user to modofy anothers level:
would this be ok for the query? i have a form on the previous page, which uses a text field named "usertomodify", and an option box with the values 1, 2, 3, and 4. This is named "select"
$sql="alter table `table` modify `level` where username=\"$usertomodify\"
I somehow need to add "alter table table modify level -- modify level to the value from $select--
How do i do this? thanks for your help.