Home  >  Article  >  Backend Development  >  Parse error: syntax error, unexpected

Parse error: syntax error, unexpected

WBOY
WBOYOriginal
2016-06-23 13:20:522263browse

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '{' or '$' in/www/users/HA68734/WEB/m/include/inc_information.php on line 33


if ( 1 {
    $extr = $db->getrow( "SELECT * FROM `".$db_mymps."information_{$rowr[modid]}` WHERE id ='{$id}'" );
    if ( $extr )
    {
        $des = get_info_option_array( );
        unset( $extr->'iid' );
        unset( $extr->'id' );
        unset( $extr->'content' );
        foreach ( $extr as $k => $v )
        {
            $val = get_info_option_titval( $des[$k], $v );
            $arr['title'] = $val['title'];
            $arr['value'] = $val['value'];
            $row['extra'][] = $arr;
            $row[$k] = $v;
        }
        $des = NULL;
    }
}


回复讨论(解决方案)

unset( $extr->'iid' );
unset( $extr->'id' );
unset( $extr->'content' );
有这么写的吗?

        unset( $extr->iid );        unset( $extr->id );        unset( $extr->content );

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn