Table Question

Henrik 15 Aug, 2009
Hi, I have a form -
It works great! I created a table and when I enable it, I get:

Any suggestions?

Parse error: syntax error, unexpected '-', expecting ',' or ';' in /homepages/11/d130393756/htdocs/artoutlet/components/com_chronocontact/chronocontact.php(52) : eval()'d code on line 17

This is the code I have between line 16 and line 28:

require_once( JApplicationHelper::getPath( 'front_html' ) );
require_once( JApplicationHelper::getPath( 'class' ) );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
//load chronoforms classes
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'chronoform.php');
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'mails.php');
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'customcode.php');
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'chronoformuploads.php');
require_once( JPATH_COMPONENT.DS.'libraries'.DS.'plugins.php');
GreyHead 16 Aug, 2009
Hi Henrik,

You almost certainly have a dash '-' in one of your input names, this breaks the MySQL. Replace the - with an underscore '_' in teh form html and the table column name and I expect all will be well.

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