View Full Version : Parse error: syntax error, unexpected '['

07-02-2011, 03:08 AM
So, Right off the bat, I am not a coder, So if this is the most simplest and stupidest mistake Don't judge me. :rolleyes:

The code... Online 26... (Bottomest Line)
Error: Parse error: syntax error, unexpected '['

// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli, for slave support add _slave. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
// for slave options just append _slave to your preferred database type.
$config['Database']['dbtype'] = 'mysql';

I sure hope my registration here was worth it :p

07-02-2011, 04:59 AM
Looks fine to me. Posts lines of code above that.

07-03-2011, 12:20 AM
PHP frequently finds errors but gets the wrong line number. Please post the entire code.