Renew your Licence

rowCount() > 0) {
// User has an account. Show the regular log in block
drupal_set_message(t(‘Please login with your CFF web site account to renew your licence.’));
drupal_goto(‘user/login’, array(‘query’=>array(
‘number’=>$number
)));
} else {
$result = db_query(“select * from cff_licences where cff_num=’$number'”);
if ($result->rowCount() > 0) {

// User is not registered on the site. Send ’em to the user registration page, loaded with new #
drupal_goto(‘user/register’, array(‘query’=>array(
‘existing_cff_number’=>$number
)));
} else {
// This user does not exist anywhere. Direct them to the new member flow.
print “This CFF-Licence number does not exist: ” . $number;
}
}
}