hello,
i am new to sugar,
can we create new php file in sugar.
if we can what are the conditions we have to follow for database connection,
please help me
thanks in advance
hello,
i am new to sugar,
can we create new php file in sugar.
if we can what are the conditions we have to follow for database connection,
please help me
thanks in advance
hi..
i created new file in sugar like this way...
i dont know its right or wrong but its work for me
i write new code in new file like:
and called this file like this in javascript:PHP Code:define('sugarEntry',true);
require_once('config.php');
$db=mysql_connect('localhost',$sugar_config["dbconfig"]["db_user_name"],'');
mysql_select_db($sugar_config["dbconfig"]["db_name"],$db) or die("Error In Database.");
try this... may this code help youPHP Code:window.location='../sugarcrm/comment.php';
![]()
Regards
==========================
akkimca
Work as Sugarcrm Freelancer
Feel free to Find me in skype. Its my pleasure to talk with you.
ID: akshay.biztech
hi
thanks for quick replay,
in the new file what are the files need to include.
can u please help me
thanks in advance,
hi...
its on you which sugar function are u using...
just include the declaration file of function which are u going to use in ur new file....
![]()
Regards
==========================
akkimca
Work as Sugarcrm Freelancer
Feel free to Find me in skype. Its my pleasure to talk with you.
ID: akshay.biztech
A better approach is:
PHP Code:if(!defined('sugarEntry'))define('sugarEntry', true);
require_once('include/entryPoint.php');
global $sugar_config;
$db = & PearDatabase::getInstance();
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
thanks...
i need this code to make my code proper....
Regards
==========================
akkimca
Work as Sugarcrm Freelancer
Feel free to Find me in skype. Its my pleasure to talk with you.
ID: akshay.biztech
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks