PHP script for member admin approval

i created a registration page in php member login page 4 mysql.and also created an admin account and now i want to do something like if the member case is added only when the admin approves it. help

-4


source to share


2 answers


The knee jerk reaction is to add a boolean column to the users table with a default value of false. However, the best route is probably the CHAR (1) column with the default "P" to wait. Then when the admin makes a choice, they can approve (set to "Y") or reject (set to "N"), they don't have to look at everything (just list all users where column = 'P')



+3


source


  • Enter an "approved" column in the user table that indicates if the account is approved.
  • Provide an interface to administrators to view a list of such accounts and toggle their approval status.
  • Update the existing authentication code to validate this column and prevent the use of "unapproved" accounts


+1


source







All Articles