Hi..
i m using sugarcrm 5.5.1 and i have requirement to use global $db outside sugarcrm application.
I have two application(one is Sugarcrm and second is core php application) which using same database of sugar. In my other application i written core php code which first take the data from sugar database and do operation like insert/update/delete and list out the data.
so i need my core php application use sugarcrm global $db(sugar database connection and all database operation) so by this if i upgrade or change the database it also effect my core php application and in future if i change my database or upgrade it wont effect my core php application.
i try this code
but didnt get any successPHP Code:if(!defined('sugarEntry'))define('sugarEntry', true);
require_once('../sugarcrm/include/entryPoint.php');
global $sugar_config;
$db = & PearDatabase::getInstance();
please help me to solve this requirement


LinkBack URL
About LinkBacks





Reply With Quote


Bookmarks