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

Thread: PHP Error

  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Error

    Hey guys, I was just adding a modification on my forum and I ran across this error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in DIRECTORY on line 326.

    I'm somewhat unfamiliar with PHP but this is the erroneous code block:

    PHP Code:
    if( $content_title_only )
                {
                    
    $k 'tid';
                    
                    
    $this->DB->build( array( 
                                        
    'select'   => "t.*",
                                        
    'from'       => array( 'topics' => 't' ),
                                         
    'where'       => 't.tid IN( ' implode','$ids ) . ')',
                                        
    'add_join' => array_merge( array( array( 'select'    => 'p.*',
                                                                                 
    'from'        => array( 'posts' => 'p' ),
                                                                                  
    'where'    => 'p.pid=t.topic_firstpost',
                                                                                  
    'type'        => 'left' ),
                                                                          array( 
    'select'    => 'm.member_id, m.members_display_name, m.members_seo_name, m.member_group_id AS starter_group'
                                                                                 'from'        
    => array( 'members' => 'm' ), //this is line 326
                                                                                  
    'where'    => 'm.member_id=p.author_id',
                                                                                  
    'type'        => 'left' ) ), $_post_joins ) ) );
                } 
    Any help is appreciated, thanks

  • #2
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,294
    Thanks
    4
    Thanked 203 Times in 200 Posts
    Looks like you're missing a comma at the end of this line

    PHP Code:
    array( 'select'    => 'm.member_id, m.members_display_name, m.members_seo_name, m.member_group_id AS starter_group'
    Dave .... HostMonster for all of your hosting needs

  • #3
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ah, that was it.

    Thanks


  •  

    Posting Permissions

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