This question already has an answer here:
am having troubles with the code of onw of the pages am working, it keeps telling me about the unexpected 'else' but i cant figure out the issue. wondering if any of you may know what could it be. thanks
<?php
$User = $this->db->get_where($this->session->userdata('login_type'), array($this->session->userdata('login_type') . '_id' => $this->session->userdata('login_user_id')))->row()->email;
if ($User == 'reparaciones2@rte.mx' or $User == 'compras@losmontacargas.mx' or $User == 'practicante1@rte.mx' or $User == 'practicante@rte.mx') { ?>
the en of the if
<?php } else { ?>
<center>
<img src="<?php echo $this->crud_model->get_image_url400('400', 'ERROR.jpg'); ?>" width="800px" class="" />
</center>
<?php } ?>
there is also the ' "}" expected.', which i think it will solve itself along with the 'else'
Aucun commentaire:
Enregistrer un commentaire