i have set up users table and succesfully done all the inserts but i want give acess to users based on there roles. how can i do this???

add a extra field in your database named usergroup and set the user permission in it.
this will batter work for you.

One way is to have something in the database stating their user level (user, admin, moderator etc) then write a simple query to check that and display only the options available to them.