Hello mates i am having user table in my database i need php code to restrict users other than administrator to update and delete operations on my website and users should not able to access user management web page.

Best way to do this is

  1. define role column in database (distinguish admin and users)
  2. on login set a session varible whether logged in user is admin/user
  3. based on the session variable display/hide your pages.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.