fetch_assoc()){ array_push($arr,$row); } } return $arr; } function scrumObj($id){ if($res = query("SELECT s.id,s.title,s.description,u.name as user FROM `scrums` s JOIN `users` u ON u.id = s.u_id WHERE s.id='%d'",array($id))){ if($res->num_rows == 1){ $scrum = $res->fetch_assoc(); $scrum['user'] = userObj($scrum['user']); return $scrum; } } return false; } ?>