Parse error: & Fatal error: when using DB connection

amanda1987 05 Feb, 2010
I'm using ChronoForms_V3.1_RC5.5 & ChronoForms_Plugin_V3.1_RC5.2.

1 - I've made a new form.
2 - I've created a table for it.
3 - I've connected the form to the table.

The following errors are shown after hitting send:

Parse error: parse error, expecting `','' or `';'' in C:\xampp\htdocs\www\sitename\components\com_chronocontact\chronocontact.php(53) : eval()'d code on line 13

Fatal error: Call to a member function bind() on a non-object in C:\xampp\htdocs\www\sitename\components\com_chronocontact\libraries\customcode.php(71) : eval()'d code on line 13


- When I set the database-connection to "no". The form works fine.
- When I set it to 'yes' again, the errors are back.
- I do not have an - in my form-name.
- I did get a succesfull database connection on other forms.

Please can someone help me?!

Thanks!
nml375 05 Feb, 2010
Hi Amanda,
Have you doublechecked that there are no dashes (-) or spaces in any of the form field names, (or spaces in the forn name).

Also, if you make any changes to correct any form field names, you'll also have to modify or re-create your database table to match the new form field names, and re-create the db connection.

/Fredrik
amanda1987 05 Feb, 2010
I only checked the form name, not the names of the fields. There was a dash in e-mail. It works now!

Thanks so much!
This topic is locked and no more replies can be posted.