Jump to content

Edit History

sphway

sphway


SOLVED

class GetVal{
        public function value(){
            $sql = new DbQuery();
            $sql->from('ps_table');
            $sql->select('id_name');
            $sql->where('id_addr = some street 10');
            return Db::getInstance()->execute($sql); // return ONE name
        }
    }

 

I try to get the result in other class,but get nothing

 

$ddb = new GetVal();
$result = $ddb->value();

 

sphway

sphway

class GetVal{
        public function value(){
            $sql = new DbQuery();
            $sql->from('ps_table');
            $sql->select('id_name');
            $sql->where('id_addr = some street 10');
            return Db::getInstance()->execute($sql); // return ONE name
        }
    }

 

I try to get the result in other class,but get nothing

 

$ddb = new GetVal();
$result = $ddb->value();

 

×
×
  • Create New...