Hello
I'm new here. I thank everyone in advance for their help. I'm also new to coding. I've run into this error. Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /rb.php on line 7806
I've tried a few fixes that I've read and nothing works. I will let everyone know. I am with Ipage hosting. I have heard that it is hard to get scripts to run on their servers. They have php version 5.2.12. I was reading that this particular coding is used in 5.3 and above. I'm completely lost here.
If someone could show me how to write this properly. I'd be much appreciative.
Here is the code from the file. I have highlighted in red the offending code. I have also included a few other lines to be as helpful as possible.
Again thanks in advance for the help. I was also able to include an image.
* @return array $results
*/
public static function exec( $sql, $values=array() ) {
return self::secureExec(function($sql, $values')' {
return R::$adapter->exec( $sql, $values );
}, NULL, $sql, $values);
}
/**
* Convenience function to execute Queries directly.
* Executes SQL.
*
* @param string $sql sql
* @param array $values values
*
* @return array $results
*/
public static function getAll( $sql, $values=array() ) {
return self::secureExec(function($sql, $values) {
return R::$adapter->get( $sql, $values );
}, array(), $sql, $values);
}
/**
* Convenience function to execute Queries directly.
* Executes SQL.
*
* @param string $sql sql
* @param array $values values
*
[attachment deleted by admin]