Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id status
- 199 1
- 142 0
- user_id hours seconds
- 199 10 90
- 144 0 800
- $results = array();
- $results = $this->db->query
- ("SELECT user.id,user.status,records.hours,records.seconds from user INNER JOIN records ON user.id = records.user_id WHERE user.status = 1 and records.hours or records.seconds > 0 ");
- $get_results = $results->result_array();
- return $get_results;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement