Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function index()
- {
- $SQL = 'SELECT pic_id, pic_url, pic_total_votes, pic_author
- FROM pictures
- ORDER BY RANDOM()
- LIMIT 2';
- $data['query'] = $this->db->query($SQL);
- $this->load->view('site/indexView', $data['query']);
- }
Advertisement
Add Comment
Please, Sign In to add comment