Error when loading form

jmauver 16 Mar, 2009
Hi community,

I created a form using the form wizard. Everything was ok, I saved the form, connected the DB, etc. But when I load the form on Joomla, I get this error message:

Parse error: syntax error, unexpected '-', expecting '{' in /home/linber0/public_html/site-live/components/com_chronocontact/chronocontact.php(41) : eval()'d code on line 3

Anyone could give me a clue whats wrong ?

Thanks a lot

Jmauver
GreyHead 16 Mar, 2009
Hi Jmauver,

You probably have a hyphen in one of your field names - this is technically illegal HTML, but more to the point here it gives MySQL indigestion.

You can remove it (or them) and close the space or replace it with an underscore - you will need to change the column names in the database table too. or dump the tabel and create a new one.

Bob
jmauver 16 Mar, 2009
Thanks Bob ! The hyphen in the field name was the problem. Now everything works nicely.

Many thanks

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