Hi guys
I'm trying to get my first form to work and I keep getting this error. I've been all over the forums here and else where and while it appears to be a simple formatting error I can't for the life of me find the thing.
The full error message is this;
Lines 41 and 72 are as follows;
I've also checked all my field names to make sure that there aren't any numbers at the start etc. I do have a few with '_' inbetween elements and they're all in uppercase if that's an issue. As I'm not familiar with PHP I'm in the dark here.
any and all help appreciated.
Kind regards
Tim
I'm trying to get my first form to work and I keep getting this error. I've been all over the forums here and else where and while it appears to be a simple formatting error I can't for the life of me find the thing.
The full error message is this;
Parse error: syntax error, unexpected '$', expecting T_VARIABLE in /home8/mycgpimp/public_html/components/com_chronocontact/chronocontact.php(41) : eval()'d code on line 72
Lines 41 and 72 are as follows;
39 $paramsvalues = $registry_cf->toObject( );
40 if($paramsvalues->dbconnection == "Yes"){
41 eval ("?>" .$rows[0]->dbclasses);
42 }
67 function showform($posted)
68 {
69 global $mainframe;
70 $database =& JFactory::getDBO();
71
72 //clear any stored sessions
73 $session =& JFactory::getSession();
74 if(!$posted){
75 $session->set("chrono_verification_msg", '', md5('chrono'));
76 }
I've also checked all my field names to make sure that there aren't any numbers at the start etc. I do have a few with '_' inbetween elements and they're all in uppercase if that's an issue. As I'm not familiar with PHP I'm in the dark here.
any and all help appreciated.
Kind regards
Tim