Blog
Passing two arrays into a view (codeigniter)
Here is a post which will show you how to pass two arrays into a view in codeigniter: Controller: function dashboard(){ $this->load->model(‘golf_db’); $user_id = $this->session->userdata(‘user_id’); $data['last_round'] = $this->golf_db->get_last_round($user_id); $data['leaderboard'] = $this->golf_db->get_leaderboard(); $this->load->view(‘dashboard’,$data); } View: < ?php echo $last_round[0]->round_week; //echo $round_week; ?> < ?php echo $last_round[0]->round_course; ?> < ?php echo $last_round[0]->round_score; ?> The Fix Instead of [...]
About Me
I am a freelance web consultant based out of Louisville, KY. I provide free web consultant services to a large variety of businesses. I am also a Programming Analyst for Coca-Cola Enterprises' Business Inteligence devision. There I work with an array of tools to develop business reports, including SAP.
I am a large advocate for the use of WordPress. On my blog you can find many tutorials on WP programming and SEO tips. In my free time I enjoy photography, rock climbing, writing scraping programs to analyze social media data, and participating in Ironman distance triathlons. I enjoy challenges both physically and mentally and blame that characteristic for my participation in Ironman events and having a diverse technical background.


