Enable Data storage causes Parse error: syntax error

jvince 22 Jun, 2009
Hi,
Enabling the DB connection seems fine in the backend, but the form page now displays the following error code:

Parse error: syntax error, unexpected '-', expecting '{' in /homepages/2/d105690735/htdocs/components/com_chronocontact/chronocontact.php(52) : eval()'d code on line 3



Disabling the DB connection makes this error go away.
Any ideas?
Thanks,

- Vince
Max_admin 22 Jun, 2009
Hi Vince,

one for your form fields names has a - and so one of your table columns names did have it too when you created a table and this is why it happens, please fix the form name and then create a new table and connect to the new table and ignore the buggy one!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jvince 23 Jun, 2009
Hi Max,
That indeed was the problem. This was beore we realised that '-' should not be used in form names.
You may want to consider an error/validation to avoid this in future versions?

Suppose the only way to remove the old table is with good old phpMyAdmin?

Many thanks,

Vincent
Max_admin 23 Jun, 2009
Hi Vincent,

Sure, I will try to add some validation! and yes you need a phpmyadmin to remove the table!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.