From 2169e3829fbed0dee101798a046e669c58fe4617 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 1 Feb 2006 21:08:59 +0000 Subject: [PATCH] Insert a mentor if we have at least the mentor's last name, instead of requiring both firstname and lastname --- register_participants_mentor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/register_participants_mentor.php b/register_participants_mentor.php index 72b16c6..124961d 100644 --- a/register_participants_mentor.php +++ b/register_participants_mentor.php @@ -79,7 +79,7 @@ if($_POST['action']=="save") if($_POST['id'][$x]==0) { //only insert if we have a name - if($_POST['firstname'][$x] && $_POST['lastname'][$x]) + if($_POST['lastname'][$x]) { //INSERT new record mysql_query("INSERT INTO mentors (registrations_id,firstname,lastname,email,phone,organization,position,description,year) VALUES (".