return $this->select_sql("select * from HX_System_Config where S_C_Off=1 limit 0,1")[0];

解决方案 »

  1.   

    错误提示是什么? 是SQL语句本身错误还是程序代码错误?问题说明越详细,回答也会越准确!参见如何提问。(提问的智慧
      

  2.   

    返的快了点儿吧?
    先把 select_sql("select * from HX_System_Config where S_C_Off=1 limit 0,1")  赋值给个变量
    然后var_dump(expression)最后 看看你的输出 ,该循环的循环,该处理的处理
      

  3.   

    我的代码是
    Public Function GetInI(){
            return $this->select_sql("select * from HX_System_Config where S_C_Off=1 limit 0,1")[0];
        }

    Public Function API_InI(){
    $res=$this->GetInI();
    if (md5($this->G("P"))==$res["S_C_LotteryPushPass"]){
    echo join("\r\n",$res);
    }else{
    return $res;
    }
    }