Jump to content

PHP DAO (Data Access Object) METHODS


febrarian

Recommended Posts

Hi all, I am new to php and I am now learning the PHP DAO which, as I heard, is the better way of coding php and mysql. I've read some article about it but they are just few. What I need is a list of all the DAO Methods. I tried finding it in google but its difficult to find. Anyone there who could send me a link or any book which provides this? Please help. Thanks! :)

Link to comment
https://forums.phpfreaks.com/topic/164357-php-dao-data-access-object-methods/
Share on other sites

examples of the methods that I'm talking about are this..

$this->query = "select ID from blog_subscribers where ID = '".$this->userID."' and friendID = '".$this->friendID."' and isActive = '1'";
                #echo $this->query;
        	        $this->result = $this->db->query($this->query);
                $this->result->fetchInto($row,DB_FETCHMODE_ASSOC);

 

I'm not familiar with those $this->result, $this->query, $this->fetchInto codes....please help.  :-[

examples of the methods that I'm talking about are this..

$this->query = "select ID from blog_subscribers where ID = '".$this->userID."' and friendID = '".$this->friendID."' and isActive = '1'";
                #echo $this->query;
        	        $this->result = $this->db->query($this->query);
                $this->result->fetchInto($row,DB_FETCHMODE_ASSOC);

 

I'm not familiar with those $this->result, $this->query, $this->fetchInto codes....please help.  :-[

 

That syntax is not unique to DAO. It's simply the basics of programming with objects. Take a look on the main site, there's quite a good tutorial on OOP concepts and syntax.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.