I have a request that runs in the controller:
$data['query'] = $this->Member->select_sql($id); $this->load->view('myform');
and then displays the data in the form:
foreach ($query->result() as $row): echo $row->post_title; echo $row->post_user_id; endforeach;
So this gives me a list of posts made by the user. Now I would like to run another query, which will be for each record cycle through my user table and display user information next to each message. (I do not want to select data from the view or combine these 2 tables at this time in MySQL)
Any ideas?
Adnan source share