Created
April 19, 2018 09:42
-
-
Save mkdesignn/b0634f37598c7b2bbbf0eef5ad8066df to your computer and use it in GitHub Desktop.
Revisions
-
mkdesignn created this gist
Apr 19, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ function getBranch($belief_id){ $con = DBINT::DBCon(); $qry = "SELECT branch.idbranch, branch.branchname from worldviews inner join branch on branch.idbranch = worldviews.branchid where beliefid = ".$belief_id.' group by branchid'; $stmt = $con->prepare($qry); $stmt->execute(); $result = $stmt->setFetchMode(PDO::FETCH_ASSOC); $r = $stmt->fetchAll(); $con = null; return $r; }