forked from science-ation/science-ation
Insert a mentor if we have at least the mentor's last name, instead of requiring both firstname and lastname
This commit is contained in:
parent
d56f62f95e
commit
2169e3829f
@ -79,7 +79,7 @@ if($_POST['action']=="save")
|
|||||||
if($_POST['id'][$x]==0)
|
if($_POST['id'][$x]==0)
|
||||||
{
|
{
|
||||||
//only insert if we have a name
|
//only insert if we have a name
|
||||||
if($_POST['firstname'][$x] && $_POST['lastname'][$x])
|
if($_POST['lastname'][$x])
|
||||||
{
|
{
|
||||||
//INSERT new record
|
//INSERT new record
|
||||||
mysql_query("INSERT INTO mentors (registrations_id,firstname,lastname,email,phone,organization,position,description,year) VALUES (".
|
mysql_query("INSERT INTO mentors (registrations_id,firstname,lastname,email,phone,organization,position,description,year) VALUES (".
|
||||||
|
Loading…
Reference in New Issue
Block a user