diff --git a/schoolaccess.php b/schoolaccess.php
index 439c98e..638da34 100644
--- a/schoolaccess.php
+++ b/schoolaccess.php
@@ -187,12 +187,12 @@ if($_SESSION['schoolid'] && $_SESSION['schoolaccesscode'])
echo "
";
echo "
".i18n("Invited participants from your school")."
";
- $q=mysql_query("SELECT * FROM students WHERE schools_id='".$school->id."' AND year='".$config['FAIRYEAR']."' ORDER BY lastname,firstname");
+ $q=mysql_query("SELECT students.*,registrations.num FROM students,registrations WHERE schools_id='".$school->id."' AND students.year='".$config['FAIRYEAR']."' AND students.registrations_id=registrations.id ORDER BY lastname,firstname");
echo "";
- echo "".i18n("Last Name")." | ".i18n("First Name")." | ".i18n("Email Address")." |
";
+ echo "".i18n("Last Name")." | ".i18n("First Name")." | ".i18n("Email Address")." | ".i18n("Registration Number")." |
";
while($r=mysql_fetch_object($q))
{
- echo "$r->lastname | $r->firstname | $r->email |
";
+ echo "$r->lastname | $r->firstname | $r->email | $r->num |
";
}
echo "
";