...

View Full Version : PHP Error



jakeomatic
11-29-2010, 12:16 AM
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:



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 :)

djm0219
11-29-2010, 01:03 AM
Looks like you're missing a comma at the end of this line


array( 'select' => 'm.member_id, m.members_display_name, m.members_seo_name, m.member_group_id AS starter_group',

jakeomatic
11-29-2010, 03:44 AM
ah, that was it.

Thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum