michaelk46 Posted January 20, 2011 Share Posted January 20, 2011 I am working on getting prepare and bind working and I get this error "Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\CMS\new\cms.php on line 84" when I run the following code... private function bindParameters(&$stmt, &$value_arr) { call_user_func_array('mysqli_stmt_bind_param', array_merge (array($stmt, $types), $value_arr); } Line 84 refers to the line that starts with call_user_func_array Anyone know what would be causing this problem? Link to comment https://forums.phpfreaks.com/topic/225118-parse-error/ Share on other sites More sharing options...
Pikachu2000 Posted January 20, 2011 Share Posted January 20, 2011 You have 3 opening parentheses, and only 2 closing parentheses. Link to comment https://forums.phpfreaks.com/topic/225118-parse-error/#findComment-1162732 Share on other sites More sharing options...
michaelk46 Posted January 20, 2011 Author Share Posted January 20, 2011 Thanks... I can't believe I missed that... Link to comment https://forums.phpfreaks.com/topic/225118-parse-error/#findComment-1162736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.