コード例 #1
0
ファイル: post.php プロジェクト: rexghadaffi/newPacion
 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"]));
 }
コード例 #2
0
ファイル: topic.php プロジェクト: rexghadaffi/newPacion
 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));
 }
コード例 #3
0
ファイル: page.php プロジェクト: rexghadaffi/newPacion
 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"));
 }
コード例 #4
0
ファイル: view_record.php プロジェクト: rexghadaffi/newPacion
 function subquery($name, $catid)
 {
     include_once "../../data-access/mysql-db.php";
     $obj = new DataAccessLayer();
     $this->assign("topic", $obj->selectColumnWhere("tbltopic", "forumCatID", 1));
 }