Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Parse error: syntax error, unexpected '['

    So, Right off the bat, I am not a coder, So if this is the most simplest and stupidest mistake Don't judge me.

    The code... Online 26... (Bottomest Line)
    Error: Parse error: syntax error, unexpected '['
    PHP Code:
    //    ****** 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

  • #2
    Regular Coder
    Join Date
    Jan 2009
    Posts
    193
    Thanks
    0
    Thanked 20 Times in 20 Posts
    Looks fine to me. Posts lines of code above that.

  • Users who have thanked skywalker2208 for this post:

    vgtalotta (07-02-2011)

  • #3
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,323
    Thanks
    60
    Thanked 525 Times in 512 Posts
    Blog Entries
    4
    PHP frequently finds errors but gets the wrong line number. Please post the entire code.
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •