title: How to Restrict Access to a Page with PHP if statement
body: <p>I have a PHP project with user account status in the database. It contains status such as active, inactive, suspended etc. I need an if statement in the index page that can Restrict access to a particular page or link if the account is set to inactive.</p>
  <p>Your response is great appreciated. Thank you in advance</p>