I need help where every page I give value 1 so what I want if page without value 1 cannot be access with another user
my logic like this :
<li class="treeview">
<a href="#">
<i class="fa fa-gears"></i> <span>User Setting</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li><a href="<?= $this->config->base_url() ?>changepassword?f=1"><i class="fa fa-circle-o"></i> Change Password</a></li>
<li><a href="<?= $this->config->base_url() ?>infouser"><i class="fa fa-circle-o"></i> Info User</a></li>
</ul>
</li>
if user B who don't have access want to open page changepassword.php disable because in database access they don't have value 1 but 0.
but they can open page infouser.php cause value not 1
there any one can give me logic using codeigniter where my database like this :
no | UID | PWD | access |
1 | user A | user A | 11 |
2 | user B | user B | 10 |