no records in table whe using dbsave

thedudebolita 20 Jan, 2014
Hello!

I am having trouble with the DB. After submitting info with the form, an ID is created with only record of the time of the submission but nothing else.

Also this table is only created if using the "Save under Model ID" option. If not, no record is even made in the data listing.

With the "Save under Model ID" option ON this is what appears after clicking on SUBMIT:

Notice: Undefined index: Data in /var/www/virtual/demenagement-reunion.net/htdocs/administrator/components/com_chronoforms5/chronoforms/actions/db_save/db_save.php on line 44 Warning: array_values() expects parameter 1 to be array, null given in /var/www/virtual/demenagement-reunion.net/htdocs/libraries/cegcore/libs/model.php on line 1297

Thanks in advance for the help!

Patrick
Max_admin 20 Jan, 2014
Answer
Hi Patrick,

Do your form fields names match the db table fields names ?

If you enable the "Save under model id" then you must have your data under this model id, and so your fields names should be in this format: Data[field_name]

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
thedudebolita 20 Jan, 2014
It worked!

Thanx a lot Max seems to work now with Data[field_name]

cheers!

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