Personally, I would have run_sql() return the $sth handle, rather than having people who'll read this code later check the docs/source of the module in order to figure out what's the deal with the global variable.
Much easier to read, IMHO, and you can also have multiple $sths if you need to.
In reply to Re: Errors from a simple Package
by Eliya
in thread Errors from a simple Package
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |