Hi there
I'm trying to integrate chronoforms into sugar crm by getting chronoforms to send submitted form fields into the sugar crm database without succes.
I've been struggling to understand different post in this matter in order to make it work, so I'm pretty confused after trying different things.
So this is my approach:
I have 2 databases in the same server:
Database1:joomla
Database2:crm
The piece of code that made most sense to me was this one:
The code was taken from this thread http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=12270&p=21567&hilit=sugarcrm#p21567
This is my understanding:
'leads' is the table where I want the data to get inserted and `first_name`,`last_name` are the fields in the table.
I inserted the code in the 'On Submit code - after sending email' textarea
After submitting the form I get debug result as shown in the attached screenshot.
I use: chronoforms 3.1 RC5.1, joomla 1.5.14, sugar community edition Version 5.2.0f (Build 5688)
I'm trying to integrate chronoforms into sugar crm by getting chronoforms to send submitted form fields into the sugar crm database without succes.
I've been struggling to understand different post in this matter in order to make it work, so I'm pretty confused after trying different things.
So this is my approach:
I have 2 databases in the same server:
Database1:joomla
Database2:crm
The piece of code that made most sense to me was this one:
<?php
<?php
$options = array('host' => 'xxx', 'user' => 'xxx', 'password' => 'xxx', 'database' => 'crm', 'prefix' = '', 'select' => 'leads');
$db2 =& new JDatabaseMySQL($options);
?>
$db2->setQuery("insert into `leads` (`first_name`,`last_name`) values('text_1','text_2');");
?>
The code was taken from this thread http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=12270&p=21567&hilit=sugarcrm#p21567
This is my understanding:
'leads' is the table where I want the data to get inserted and `first_name`,`last_name` are the fields in the table.
I inserted the code in the 'On Submit code - after sending email' textarea
After submitting the form I get debug result as shown in the attached screenshot.
I use: chronoforms 3.1 RC5.1, joomla 1.5.14, sugar community edition Version 5.2.0f (Build 5688)