It was recently suggested to me by shane that I would need to 'abstract' my database functions from my code.

I have been reading into this and I still cannot find solutions to some of my problems here. First of all, how can I perform SELECTS using functions? It is pretty simple to open a database connection and execute SQL statements, but for retrieving values and rows, I am stuck. Can someone with experience in db abstraction and ASP help me out? Does anyone have a sample abstraction file that I could use (with my modifications)?