Thanks - I really should have read the manual pages - D'Oh - RTFM TO MYSELF!!!!
"eval() evaluates the string given in code_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution. "
which is exactly what I need - but I am from the world of perl (sorry) where eval usually has some connection with maths so I didn't bother looking at it.. Thanks Vincent
Yours,
Ross McKillop
ross@madross.co.uk