ClovisFilho

Untitled

Aug 15th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1.     public function index()
  2.     {
  3.         $SQL            =   'SELECT pic_id, pic_url, pic_total_votes, pic_author
  4.                             FROM pictures
  5.                             ORDER BY RANDOM()
  6.                             LIMIT 2';
  7.         $data['query']  =   $this->db->query($SQL);
  8.        
  9.        
  10.         $this->load->view('site/indexView', $data['query']);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment