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;
}
}
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 );
推荐阅读
-
Parse error: syntax error, unexpected
-
PHP异常Parse error: syntax error, unexpected T_VAR错误
-
PHP错误Parse error: syntax error, unexpected end of file in_PHP
-
PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE
-
微信开发 - syntax error, unexpected T_AS in example.php on line 211?
-
Parse error: syntax error, unexpected T_DO, expecting '' in解决方案
-
Parse error: syntax error, unexpected T_DO, expecting ';' in
-
PHP异常Parse error: syntax error错误解决方法
-
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法_php技巧
-
PHP Parse Error: syntax error, unexpected $end 错误的解决办