i have a similar question. i have two tables where table 'courses' hasMany 'students' and 'students' belongs to 'courses'. I want to be able to have a list of all the courses and count how many students there are (ex: english - 20 students, math - 35 students). I've been searching all over...Count(*), query(), execute(), group By....it's gotten so bad that i think i've re-read the same stuff over and over again. so any help would be very much appreciated. Thanks.
student id, name courses id, number, student_id my controller is currenly blank since i've entering every code i thought was "right" and kept being disappointed and eventually forgot what my original idea was...i need to go to bed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
