Writing first mysql abstraction layer, would like suggestions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jpenney
    New Member
    • Sep 2007
    • 7

    Writing first mysql abstraction layer, would like suggestions

    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!
  • kovik
    Recognized Expert Top Contributor
    • Jun 2007
    • 1044

    #2
    There is a good forum post here at TSDN.
    Last edited by pbmods; Sep 9 '07, 06:24 PM. Reason: Link to competing forum removed.

    Comment

    • jpenney
      New Member
      • Sep 2007
      • 7

      #3
      I realize it's policy, but in the spirit of free software, I don't think it's necessary or prudent to remove "competing" links. In fact, I don't think the concept of "competing" even makes sense in a free software world.

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Originally posted by jpenney
        I realize it's policy, but in the spirit of free software, I don't think it's necessary or prudent to remove "competing" links. In fact, I don't think the concept of "competing" even makes sense in a free software world.
        Good argument, wrong place for it. Feel free to start a discussion in the site feedback forum, and we'll see what the site administrators have to say about it.

        Comment

        Working...