v4 database connection

margie 11 Mar, 2011
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
GreyHead 11 Mar, 2011
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
Max_admin 11 Mar, 2011
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
margie 11 Mar, 2011
Fantastic - all fixed.thanks
now is there any work-around for no backup to CSV?!
GreyHead 11 Mar, 2011
Hi margie,

For the moment, and as a workaround, PHP MyAdmin will always let you back up a table to CSV

Bob
This topic is locked and no more replies can be posted.