欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Parse error: syntax error, unexpected

程序员文章站 2024-01-04 15:41:52
...
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 );

上一篇:

下一篇: