Support Forums
PHP Help - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: PHP Help (/showthread.php?tid=14029)



PHP Help - Jake - 11-27-2010

I was editing a modification on my website; here is the code already modified
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' ),
                                                                              
'where'    => 'm.member_id=p.author_id',
                                                                              
'type'        => 'left' ) ), $_post_joins ) ) );
            } 

However, it pulls this error:
PHP Code:
ErrorParse errorsyntax errorunexpected T_ASexpecting ')' in DIRECTORY on line 325 

(Line 325 is array( 'select' => 'm.member_id...etc))

Any and all help is appreciated, thanks.


RE: PHP Help - Jake - 11-30-2010

Nevermind, solved it thanks.


RE: PHP Help - Orgy - 11-30-2010

(11-30-2010, 06:35 AM)Jake Wrote: Nevermind, solved it thanks.

You're quite welcome Smile