$result = db_query("select cast(civicrm_contact.external_identifier as unsigned) as id,civicrm_contact.first_name as fn,civicrm_contact.middle_name as mn, civicrm_contact.last_name as ln from civicrm_contact,civicrm_membership where civicrm_membership.contact_id = civicrm_contact.id and civicrm_membership.status_id <= 5 order by id;");
$res = $result->fetchAll();
$count = $result->rowCount();
# print "Estes são os $count sócios da ANSOL. E que tal <a href='https://ansol.org/?q=inscricao'>tornar-se sócio também</a>? :)\n";
print "A ANSOL tem actualmente $count sócios. E que tal <ahref='https://ansol.org/?q=inscricao'>tornar-se sócio também</a>? :)\n";
#print "<pre>\n";
#var_dump($res);
#print "</pre>\n";
# descomentar se quisermos voltar a mostrar a lista de sócios