DB save error

wiciu2.0 24 Nov, 2012
Hi! I have problem with save form to database. In form names and in names column in DB i used only legal character ([a-z] and "_"). I refreshed DB (in settings I change Enable to "No", I saved and change to "Yes" and I saved again) but when I submit my form, I see:
"Parse error: syntax error, unexpected T_VAR, expecting '{' in /virtual/zniewoleni.cba.pl/administrator/components/com_chronoforms/form_actions/db_save/db_save.php(66) : eval()'d code on line 4"

How can I solve this problem?

PS.
I'm sorry, if I wasn't wrote good. I'm from Poland and I don't speak in English good.
GreyHead 24 Nov, 2012
Hi wiciu2.0,

Please post a link to the form so I can take a quick look.

Bob
wiciu2.0 24 Nov, 2012
Hi! I'm trying with different settings and I found where was the problem: When I click "Create Table", in field "Table Name" was:
#__chronoforms_data_Title
. When I deleted "#" from Table Name, form started work corretly. So problem was solved but thank you for quick response🙂

I greet.
GreyHead 25 Nov, 2012
Hi wiciu2.0,

The #__ prefix should be OK, the first #_ is replaced with the table prefix set for your site e.g. #__some_table becomes jos_some_table. This allows the came code to be used on different sites with different table prefixes set.

I guess it might fail if there is no prefix set??

Bob
wiciu2.0 25 Nov, 2012
Hi Bob!

My table name is "Title" without any prefix, and this form work corretly.
This topic is locked and no more replies can be posted.