SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict whydna's Avatar
    Join Date
    Jun 2006
    Posts
    258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is this called?

    PHP Code:
    Class UsersXXX
    {
        public function 
    createUser($username$pass$email)
        {
             
    $sql insert into...
             
    mysql_query($sql);
        }

        public function 
    getLatestUsers($max 10)
        {
             
    $sql select from ...
             
    mysql_query($sql);
             return 
    $results;
        }

    Not functional obviously. But what is this technique of abstracting a database table called? Models? DAO?

    Thanks

  2. #2
    SitePoint Addict webaddictz's Avatar
    Join Date
    Feb 2006
    Location
    Netherlands
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •