Should do it. However what happens if your function has an error? Needs to be able to deal with this. If the function is run before the binding and return value is placed in a variable it can be checked prior to doing anything with your db.
diafol, by god ole' chap you have done it again... lol i just forgot to put a = ? in the prepared statement for that col. I caught it when i switched the update statement to a string. Thanks again man.