Hello,
(Using Chronoforms_J1.5_V4_RC1.9 and Joomla! 1.5.23)
I am having a problem with saving info into a db using the DB Save action. I have a form that is populated from 4 tables using 4 different model IDs (Note, City, State, User) and just want the form to write to the db as well as send out an email. I have the record loading portion working fine as well as the email portion. My problem is that when I add a DB Save action I get an error:
Parse error: parse error, expecting `','' or `';'' in C:\xampp2\htdocs\ppr\administrator\components\com_chronoforms\form_actions\db_save\db_save.php(62) : eval()'d code on line 10
Fatal error: Call to a member function bind() on a non-object in C:\xampp2\htdocs\ppr\administrator\components\com_chronoforms\form_actions\db_save\db_save.php on line 85
Here are the settings of my record loader actions:
DB Record Loader 1:
DB Field: id
Table: ppr_properties_products
Request Param: uid
Load Fields: Yes
Model ID: Note
Load Under Model ID: Yes
Where statement: none
DB Record Loader 2:
DB Field: id
Table: ppr_properties_state
Request Param: id
Load Fields: No
Model ID: State
Load Under Model ID: Yes
Where statement: <?php
$detail = $form->data['Note'];
?>
`id` = '<?php echo $detail['sid']; ?>'
DB Record Loader 3:
DB Field: id
Table: ppr_properties_locality
Request Param: id
Load Fields: No
Model ID: City
Load Under Model ID: Yes
Where statement: <?php
$detail = $form->data['Note'];
?>
`id` = '<?php echo $detail['lid']; ?>'
DB Record Loader 4:
DB Field: id
Table: ppr_users
Request Param: id
Load Fields: No
Model ID: User
Load Under Model ID: Yes
Where statement: <?php
$user = &JFactory::getUser();
echo "id = ".$user->id
?>
Any help would be much appreciated.
(Using Chronoforms_J1.5_V4_RC1.9 and Joomla! 1.5.23)
I am having a problem with saving info into a db using the DB Save action. I have a form that is populated from 4 tables using 4 different model IDs (Note, City, State, User) and just want the form to write to the db as well as send out an email. I have the record loading portion working fine as well as the email portion. My problem is that when I add a DB Save action I get an error:
Parse error: parse error, expecting `','' or `';'' in C:\xampp2\htdocs\ppr\administrator\components\com_chronoforms\form_actions\db_save\db_save.php(62) : eval()'d code on line 10
Fatal error: Call to a member function bind() on a non-object in C:\xampp2\htdocs\ppr\administrator\components\com_chronoforms\form_actions\db_save\db_save.php on line 85
Here are the settings of my record loader actions:
DB Record Loader 1:
DB Field: id
Table: ppr_properties_products
Request Param: uid
Load Fields: Yes
Model ID: Note
Load Under Model ID: Yes
Where statement: none
DB Record Loader 2:
DB Field: id
Table: ppr_properties_state
Request Param: id
Load Fields: No
Model ID: State
Load Under Model ID: Yes
Where statement: <?php
$detail = $form->data['Note'];
?>
`id` = '<?php echo $detail['sid']; ?>'
DB Record Loader 3:
DB Field: id
Table: ppr_properties_locality
Request Param: id
Load Fields: No
Model ID: City
Load Under Model ID: Yes
Where statement: <?php
$detail = $form->data['Note'];
?>
`id` = '<?php echo $detail['lid']; ?>'
DB Record Loader 4:
DB Field: id
Table: ppr_users
Request Param: id
Load Fields: No
Model ID: User
Load Under Model ID: Yes
Where statement: <?php
$user = &JFactory::getUser();
echo "id = ".$user->id
?>
Any help would be much appreciated.