Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $id = $this->session->userdata('id');
- $this->db->where('colaborador', $id);
- $this->db->where('permissao', 13);
- $fotos = $this->db->get('files')->result();
- if(!empty($fotos)){
- foreach($fotos as $foto){
- echo '<img src="'.base_url('upload/'.$foto->file_name)).'" width="50" height="50" class="img-circle" />';
- }
- }else{
- echo '<img src="http://www.socialbits.com.br/wp-content/uploads/2015/03/user.png" width="50" height="50" class="img-circle" />';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement