Welcome Guest, Not a member yet? Register   Sign In
errror Result()
#4

[eluser]MMCCQQ[/eluser]
Model

Code:
[quote]function GetGallerySpot()
    {
        
        
        $this->db->where('id_spot',$this->uri->segment(3));
        $query = $this->db->get('gallery');
        
        if($query->num_rows > 0 )
        {
            
            return $query;
            
        }
        else
        {
            
            return FALSE;
            
        }
        
        
        
        
        
    }[/quote]

Controller
Code:
$side['query'] = $this->TS->ViewInfoProfile();
        $data['side'] = $this->load->view('side',$side, true);
        $data['main'] = $this->load->view('spot/view_panel', $main, true);
    
        $this->load->view('main_template', $data);

Code:
<div id="wrap_contx">
    <div id="sidebar">
        <div id="t_in">Photos of This Spot</div>
        <div id="div_details">
    Add Photos
    </div>
&lt;?php foreach($query->result() as $row):?&gt;

<img src="&lt;?=$row->thumb;?&gt;">


  &lt;?php endforeach;?&gt;
  </div>
  </div>


Messages In This Thread
errror Result() - by El Forum - 10-22-2007, 01:24 PM
errror Result() - by El Forum - 10-22-2007, 01:27 PM
errror Result() - by El Forum - 10-22-2007, 01:30 PM
errror Result() - by El Forum - 10-22-2007, 01:44 PM
errror Result() - by El Forum - 10-22-2007, 01:52 PM
errror Result() - by El Forum - 10-22-2007, 03:39 PM
errror Result() - by El Forum - 10-22-2007, 04:16 PM
errror Result() - by El Forum - 10-22-2007, 06:55 PM
errror Result() - by El Forum - 10-22-2007, 07:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB