in reply to Returning a value from a sub routine

I'd start by checking if the database query worked. Add some error checks.
  • Comment on Re: Returning a value from a sub routine