Created
April 19, 2018 09:42
-
-
Save mkdesignn/b0634f37598c7b2bbbf0eef5ad8066df to your computer and use it in GitHub Desktop.
This file contains 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 characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment