thinkphp5查询某一行多个字段的值
$result=Db::name("app") ->where("appID","AAABBBCCCDDD") ->field("appName,appSecret") ->find(); return $result;在find前加上field即可。
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
$result=Db::name("app") ->where("appID","AAABBBCCCDDD") ->field("appName,appSecret") ->find(); return $result;在find前加上field即可。