hi - I need help with connecting to the database to save the form data with v4. (There is no documentation for this version.) I have added the DB save box to the on On submit Events, selected the db table that i created and kept the other default settings.
I get these error messages:
Parse error: syntax error, unexpected '-', expecting ',' or ';' in /usr/www/users/gardef/administrator/components/com_chronoforms/form_actions/db_save/db_save.php(44) : eval()'d code on line 26
Fatal error: Call to a member function bind() on a non-object in /usr/www/users/gardef/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 67
I get these error messages:
Parse error: syntax error, unexpected '-', expecting ',' or ';' in /usr/www/users/gardef/administrator/components/com_chronoforms/form_actions/db_save/db_save.php(44) : eval()'d code on line 26
Fatal error: Call to a member function bind() on a non-object in /usr/www/users/gardef/administrator/components/com_chronoforms/form_actions/db_save/db_save.php on line 67
Hi margie,
I haven't worked this out myself yet but usually the "unexpected '-'" message is a sign that you have a dash '-' in one of your input names. Try replacing that with an underscore '_'. You'll need to change the database column name to match and you'll need to refresh the record that ChronoForms keeps -- I have no idea how to do that in CFv4 though :-(
Bob
I haven't worked this out myself yet but usually the "unexpected '-'" message is a sign that you have a dash '-' in one of your input names. Try replacing that with an underscore '_'. You'll need to change the database column name to match and you'll need to refresh the record that ChronoForms keeps -- I have no idea how to do that in CFv4 though :-(
Bob
Hi,
Changing the field name and rebuilding the table will be enough, the class code is regenerated every time the form is loaded.
Regards,
Max
Changing the field name and rebuilding the table will be enough, the class code is regenerated every time the form is loaded.
Regards,
Max
Fantastic - all fixed.thanks
now is there any work-around for no backup to CSV?!
now is there any work-around for no backup to CSV?!
This topic is locked and no more replies can be posted.