excuse me I have little problem what is right syntax to access page if I have condition like this (status) in session if status=0 and 2 can be access pegawai
this if status=0,
<?php if($this->session->userdata('STATUS')==0) {?> <li><a href="<?php echo base_url() ?>pegawai"><i class="icon-user"></i>Pegawai</a></li><?php } ?>
so I want this page can be access if status 0 and 2 what syntax that should be used?
I have make this
<?php
if($this->session->userdata('STATUS')==0) {
?>
<li><a href="<?php echo base_url() ?>pegawai"><i class="icon-user"></i>Pegawai</a></li>
<?php
}
?>
<?php
if($this->session->userdata('STATUS')==2) {
?>
<li><a href="<?php echo base_url() ?>pegawai"><i class="icon-user"></i>Pegawai</a></li>
<?php
}
?>
so if status 0 and 2 can be acces but it's not efficient