febrarian Posted July 1, 2009 Share Posted July 1, 2009 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 More sharing options...
trq Posted July 1, 2009 Share Posted July 1, 2009 The methods involved aren't set in stone, it depends entirely on your data. Link to comment https://forums.phpfreaks.com/topic/164357-php-dao-data-access-object-methods/#findComment-867009 Share on other sites More sharing options...
febrarian Posted July 2, 2009 Author Share Posted July 2, 2009 Could you provide me a good tutorial for this?thanks. Link to comment https://forums.phpfreaks.com/topic/164357-php-dao-data-access-object-methods/#findComment-867464 Share on other sites More sharing options...
febrarian Posted July 2, 2009 Author Share Posted July 2, 2009 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. Link to comment https://forums.phpfreaks.com/topic/164357-php-dao-data-access-object-methods/#findComment-867638 Share on other sites More sharing options...
trq Posted July 2, 2009 Share Posted July 2, 2009 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. Link to comment https://forums.phpfreaks.com/topic/164357-php-dao-data-access-object-methods/#findComment-867648 Share on other sites More sharing options...
febrarian Posted July 2, 2009 Author Share Posted July 2, 2009 okay, I'll try to find it first. thanks! Link to comment https://forums.phpfreaks.com/topic/164357-php-dao-data-access-object-methods/#findComment-867679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.