Skip to content

Instantly share code, notes, and snippets.

@jasonbronson
Created March 10, 2016 20:31
Show Gist options
  • Save jasonbronson/fcb5cdff4294205a564f to your computer and use it in GitHub Desktop.
Save jasonbronson/fcb5cdff4294205a564f to your computer and use it in GitHub Desktop.
$data['email'] = $email;
$this->setConfirmationLink( $this->general->getGUID() );
$data['email_confirmation_code'] = $this->getConfirmationLink();
if( DB::insert('insert into leads (email, email_confirmation_code, created_date)
values (?, ?, now())', [$data['email'], $data['email_confirmation_code']]) ){
return true;
}else{
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment