diff --git a/register_participants.php b/register_participants.php index 810ffab..fbbc1e3 100644 --- a/register_participants.php +++ b/register_participants.php @@ -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".