Hi Jo,
Sorry, we'd cross posted so I missed your error...
The first thing I noticed is you have wrapped the whole thing in PHP tags including the label, but the label is not PHP (it is HTML) so it will cause a parse error. The PHP tags need to be just around the call to the data entry helper.
Second minor thing is a typo - occAtt:2 should be occAttr:2. This won't cause an error yet, but when you come to submit the data, the value would not get picked up.
A few more points about this code - the tutorial is actually still using an older technique of calling the data entry helper methods and needs updating (I'll do that in a moment). Using the new technique the code would be something like:
<?php
echo data_entry_helper::radio_group(array(
'label'=>'Approximate population size',
'fieldname'=>'occAttr:2',
'table'=>'termlists_term',
'captionField'=>'term',
'valueField'=>'id',
'extraParams'=>$readAuth + array('termlist_id'=>1)
));
?>
There is nothing wrong with the old way of calling the methods - it's just that the new method allows for much greater flexibility with more parameters. Plus in my opinion the code is more readable and tidier - although it is slightly more typing I favour readability over brevity!
Finally, I noticed a bug in the radio_group control which did not support templating labels like the other controls - so I've just fixed this in the code in the subversion repository.
That leads me to another suggestion for what to do next. You could have a look at the Wiki section on developer recipes, which includes guides on setting up your own themes, controlling the template of the code output for each control, performance tips, etc etc. It would be interesting to know how you get on using the templating and theme support for example.
Best Wishes
John van Breda
Biodiverse IT