942,959 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 23
  • PHP RSS
Jul 30th, 2010
0

List Team members in Achievements report

Expand Post »
dear all,

I am developing a web application for a Training Hostel, in my application i need to produce a report for achievements by the Inmates. For individual achievements it is no problem but when it comes to an achievement by a team, i am stucked to display all the team members on the achievement report. All i could display is a list of achievements for a defined period (filtered from a search form) with only one achiever (team leader) in the list. However, i need to show/display all the inmates involved in all the achievements on the list.

the sql i use to display achievements is :
PHP Syntax (Toggle Plain Text)
  1. SELECT achievementid, achieveddate, tblcompetitions.competition, complevel, tblachievements.traineeid, tbldiscipline.discipline, tbldiscicats.category, tblevents.event, tbleventtypes.eventtype, tblpositions.positionname, score, tbltrainees.surname, tbltrainees.firstname, tbltrainees.lastname, tbltrainees.gender
  2. FROM tblachievements
  3. LEFT JOIN tblcompetitions ON tblachievements.competitionid = tblcompetitions.competitionid
  4. LEFT JOIN tbltrainees ON tblachievements.traineeid = tbltrainees.traineeid
  5. LEFT JOIN tbldiscipline ON tblachievements.disciplineid = tbldiscipline.disciplineid
  6. LEFT JOIN tbldiscicats ON tblachievements.catid = tbldiscicats.catid
  7. LEFT JOIN tblevents ON tblachievements.eventid = tblevents.eventid
  8. LEFT JOIN tbleventtypes ON tblachievements.eventtypeid = tbleventtypes.eventtypeid
  9. LEFT JOIN tblpositions ON tblachievements.positionid = tblpositions.positionid
  10. WHERE achieveddate >= ['formfield1'] AND achieveddate <= ['formfield2]
  11. ORDER BY tblachievements.disciplineid ASC
  12.  

i use to record the other team members in the database table :
PHP Syntax (Toggle Plain Text)
  1. Table : tblteamdetails
  2. field1: teamdetailsid
  3. field2: achievementid
  4. field3: traineeid

Somebody help me please
Similar Threads
Reputation Points: 10
Solved Threads: 2
Light Poster
bobbymoir is offline Offline
25 posts
since Dec 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Transform file function to Curl functions
Next Thread in PHP Forum Timeline: How to Change Status bar of Iframe?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC