Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $this->db->select('projectID');
  2. $this->db->from('project');
  3. $this->db->where('project.projectID', '1');
  4. $projectID = $this->db->get()->result();
  5.  
  6. $this->db-> select('taskID');
  7. $this->db-> from('project_tasks');
  8. $this->db-> where('projectID', (string)$projectID);
  9. $tasks = $this->db->get()->result();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement