没看到语法错误注意:empty($state)  $state=0的时候,也是true

解决方案 »

  1.   

    if(!empty($state)) {$add.=" AND state={$state}";$add_url.="&state={$state}";} 
    if(!empty()) {$add.=" AND country={$country}";$add_url.="&country={$country}";}
    if(!empty($usertype)) {$add.=" AND usertype={$usertype}";$add_url.="&usertype={$usertype}";}
    ---------------
    Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in E:\AppServ\www\mysite\user_box\index.php on line 409第二行就是409行
      

  2.   

    你第二句里面empty函数怎么没给参数!!
      

  3.   

    同5楼,if(!empty()) 函数少参数