Hi, I'm learning PHP and want to try writing a beginner's library to do all my mysql stuff. I want to be able to connect to a server, use a database and open a table (maybe later a generalized query, but not now) and basically abstract the pieces of mysql into a set of objects in php.
One of the things I tried to do before (and posted a question in this forum about) is a function that takes a SQL query, runs it, and hands me back the result to work with. I realize mysql_query already does this, but I want to wrap it, and have my wrapper hand the query resource back to me as a return value or something like it.
Can anyone suggest a strategy for this? Thanks!