Last active
August 29, 2015 14:18
-
-
Save maranemil/2bd059ca20e8db8c8ce7 to your computer and use it in GitHub Desktop.
Using DB in SugarCRM
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
global $db; | |
$db = DBManagerFactory::getInstance(); | |
$sql = "SELECT your_qurey_here"; | |
$res = $db->query($sql); | |
$row = $db->fetchByAssoc($res); | |
$cnt = $db->getRowCount($res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment