Allow non-primary user to request registration number be emailed to them

This commit is contained in:
james 2004-12-06 18:30:11 +00:00
parent b152d7d662
commit ece5a157ac

View File

@ -52,7 +52,7 @@
}
else if($_GET['action']=="resend" && $_SESSION['email'])
{
$q=mysql_query("SELECT num FROM registrations WHERE email='".$_SESSION['email']."'");
$q=mysql_query("SELECT registrations.num FROM registrations, students WHERE students.email='".$_SESSION['email']."' AND students.registrations_id=registrations.id");
$r=mysql_fetch_object($q);
$mailbody= "We have received a request for the retrieval\n".