I need to assign a kind of \"premium status\" to members that purchase an amount equal or greater than 100 € via PHP.
Conditional Actions are already set up (user = anon
Just though I'd update the snippet for Drupal 7. Otherwise it works fine :)
$rid = db_query("SELECT r.rid FROM {role} r WHERE r.name = :rname", array(':rname' => $role_name))->fetchField();