From b5a67ca301f815296fde6b8731c8ba1671c74fe6 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 16 Mar 2010 16:57:39 +0000 Subject: [PATCH] Fix missing space --- register_participants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register_participants.php b/register_participants.php index 323888d..61bd8a1 100644 --- a/register_participants.php +++ b/register_participants.php @@ -54,7 +54,7 @@ $_SESSION['email']=stripslashes(mysql_escape_string($_POST['email'])); $q=mysql_query("SELECT registrations.id AS regid, registrations.num AS regnum, students.id AS studentid, students.firstname FROM registrations,students ". - "WHERE students.email='".$_SESSION['email']."'". + "WHERE students.email='".$_SESSION['email']."' ". "AND registrations.num='".intval($_POST['regnum'])."' ". "AND students.registrations_id=registrations.id ". "AND registrations.year=".$config['FAIRYEAR']." ".