function display() { include_once "../../data-access/mysql-db.php"; $obj = new DataAccessLayer(); $this->assign("replies", $obj->selectColumnWhere("tblreply", "postID", $_GET["postid"])); $this->assign("postresult", $obj->selectById("tblpost", "postID", $_GET["postid"])); }
function display() { include_once "../data-access/mysql-db.php"; $obj = new DataAccessLayer(); $this->assign("topic", $obj->selectById("tbltopic", "topicID", $_GET["topicid"])); $this->assign("posts", $obj->selectColumnWhere("tblpost", "postStatus", 1)); }
function display() { include_once "../data-access/mysql-db.php"; $obj = new DataAccessLayer(); $this->assign("forumcategory", $obj->select("tblforumcategory")); $this->assign("topic", $obj->selectColumnWhere("tbltopic", "topicStatus", 1)); $this->assign("latest", $obj->select("tbltopic limit 8")); }
function subquery($name, $catid) { include_once "../../data-access/mysql-db.php"; $obj = new DataAccessLayer(); $this->assign("topic", $obj->selectColumnWhere("tbltopic", "forumCatID", 1)); }