From 10fa7919c4a2a0715b6d9deb33af501dfcf9c960 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 22 Oct 2009 19:22:53 +0000 Subject: [PATCH] Create and maintain parent records for emergency contacts that are parents --- register_participants_emergencycontact.php | 42 ++++++++++++++-------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/register_participants_emergencycontact.php b/register_participants_emergencycontact.php index b78e50f..4014b5a 100644 --- a/register_participants_emergencycontact.php +++ b/register_participants_emergencycontact.php @@ -24,6 +24,7 @@ id'"); - if(mysql_num_rows($q)==0) - { + if(mysql_num_rows($q)==0) { mysql_query("INSERT INTO emergencycontact (registrations_id,students_id,year) VALUES ('".$_SESSION['registration_id']."','".$sr->id."','".$config['FAIRYEAR']."')"); $id=mysql_insert_id(); unset($r); } - else - { + else { $r=mysql_fetch_object($q); $id=$r->id; }